leetup
leetup copied to clipboard
Command line tool to solve Leetcode problems. Leet it up!!
``` VOTBDC5:~$ ./leetup --version leetup 1.0.4 VOTBDC5:~$ ./leet submit 63.java unique-paths-ii.java ⡧ Waiting for judge result! ✘ Wrong Answer 22/41 cases passed (N/A) Failed Test: String( "1", ) ``` Failed...
First off, excellent work. Using Github OAuth for login was clever. I want to filter the questions having official solutions . I tried modifying [leetcode.rs](https://github.com/dragfire/leetup/blob/master/src/service/leetcode.rs), but couldn't get it working...
Relevant code: https://github.com/dragfire/leetup/blob/master/src/service/leetcode.rs#L765 https://github.com/dragfire/leetup/blob/master/src/service/provider.rs#L97-L121
Fixes: #13
This will help in creating Vim plugin -- use Vim's `channel` to communicate with `leetup` server. Use https://github.com/rusqlite/rusqlite and remove KvStore.
Test: ``` list List questions pick Pick a problem submit Submit a problem test Submit a problem user User auth ```
Leetup doesn't show anything when picking a locked question. Reproduce issue: `leetup pick 1645` Relevant code: https://github.com/dragfire/leetup/blob/master/src/service/leetcode.rs#L749-L781
 Unicode icons: https://github.com/dragfire/leetup/blob/master/src/icon.rs Some ideas: https://github.com/leetcode-tools/leetcode-cli/blob/master/icons/ascii.json https://github.com/leetcode-tools/leetcode-cli/blob/master/icons/win7.json Will need to have a fallback for command prompt!
Do everything inside Vim/Neovim: Navigation, Exploring problems, Solve, Test, Submit.