Leetcode-cli
cli tool to get leetcode daily question
Example Usage:
leetcode-cli daily go
leetcode-cli daily python
Install
- You will need to install go on your machine: https://go.dev/doc/install
- Setup GOPATH
Add the following to your shell config
export PATH=${PATH}:$HOME/go/bin
More information: https://go.dev/wiki/GOPATH#gopath-variable
- Install the binary
go install github.com/epicseven-cup/leetcode-cli@latest
There could be delays between the Goproxy and GitHub binarys, you can use the direct setup
GOPROXY=direct go install github.com/epicseven-cup/leetcode-cli@latest