Mark Lucernas
Jan 03, 2021

Usage

Quick Start

# Basics
leetcode help                               # Read help first
leetcode user -l                            # Login with your leetcode account
leetcode list                               # Browse all questions
leetcode show 1 -g -l cpp                   # Choose one question

# Coding
leetcode test ./two-sum.cpp -t '[3,2,4]\n7' # Run test(s) with test inputs
leetcode submit ./two-sum.cpp               # Submit final solution!

Ref:

Plugins

Plugins installation

# Install plugin
leetcode plugin -i <plugin-name>
# Remove plugin
leetcode plugin -D <plugin-name>

Issues

NOTE: Install cookie.firefox plugin if having problems installing cookie.chrome


Resources