NOTE: Insipired by original repository, thanks the original author and contributors of it!
We use just to make it easy to install, run and test:
just setup: Setup all enviroment withuvjust conan-install: Install all dependencies byconanjust configure: Do configure forCMakejust build: Build the whole projectjust run: Run the main problem get program. With no arguments it stays interactive; with arguments it runs the command directly.just test: Run tests for whole projectsjust cppcheck: Run cppcheckjust clean-all: Remove all generated files
- Remove all the solution .cpp
- Clean all files in src/solution
- Start your leetcode journey by typing
just runand then input the question id - Fetch a problem directly with
just run {question_id} - To solve a problem (we should start the problem first), use
just run solve {question_id}or entersolve {question_id}afterjust run - To passby cloudflare, please
cp .env.smaple .env, and setLEETCODE_COOKIEwith your cookie (could be find in Firefox or Chrome console)