LeetCode brings you offer, and now Emacs brings you LeetCode!
leetcode
command, and in problem list buffer:Press <RET>
, show problem detail, move cursor to "solve it", press <RET>
again, start coding!
After finishing your code, you can edit testcase and execute leetcode-try
or execute leetcode-submit
.
In leetcode-solution-mode
, you will have:
You can also disable IDE-like features by adding hook to leetcode-solution-mode-hook
:
(add-hook 'leetcode-solution-mode-hook (lambda() (flycheck-mode -1)))
package-install
it from melpa directlyLeetCode do not allow third party login, one workaround is restore LeetCode session from local Firefox or Chrome cookies. By default, this package will install a Python3 package called my_cookies, or you can install it manually: pip3 install my_cookies
.
Since we are using shr.el to render HTML, you may also want to look at shrface.
You can set your preferred LeetCode programming language and SQL by setting leetcode-prefer-language
and leetcode-prefer-sql
:
If you prefer not to see problems' tags in the *leetcode**
buffer by default. set leetcode-prefer-tag-display
to nil
(setq leetcode-prefer-language "python3") (setq leetcode-prefer-sql "mysql")
All supported languages can be found in variable leetcode--lang-suffixes
.
You can save solution by setting leetcode-save-solutions
:
(setq leetcode-save-solutions t) (setq leetcode-directory "~/leetcode")
leetcode-show-problem-by-slug
will let you put to org files with a link in this format to show the question after the leetcode buffer is load like [elisp:(leetcode-show-problem-by-slug (leetcode--slugify-title "ZigZag Conversion"))]
Call leetcode-toggle-debug
, log will output in *leetcode-log*
buffer.
Please submit PR to develop branch.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4