GithubHelp home page GithubHelp logo

leetcode-emacs's Introduction

Leetcode-emacs

This is an Emacs plugin that makes it easier and faster to write leetcode programs.

Prerequisites

  • leetcode-cli

This tool is based on leetcode-cli, You can install the latest version through its website.

  • ctable

This tool uses the emacs package ctable to show all leetcode issues, you can download it from github or install it using ELPA.

  • names

This tool uses the emacs package names manage namespace, you can download it from github or install it using ELPA.

Installing

  • clone the project in your own emacs configuration files directory, like:
git clone [email protected]:ginqi7/leetcode-emacs.git ~/.emacs.d/lisp/leetcode
  • add the path to ‘load-path’
(add-to-list 'load-path (expand-file-name "~/.emacs.d/lisp/leetcode"))

Configuration

you can use the ‘use-package’, there are two configurable variable.

  • leetcode-path : assign the path to save the solution codes
  • leetcode-language : assign the the language of the solutions
(use-package leetcode
    :config
    (setq leetcode-path "~/Dropbox/Leetcode/"
          leetcode-language "java")
)

Features

login / logout

leetcode-login:

leetcode-logout:

list all questions

leetcode-list-all:

show a specific question

leetcode-show n: show a description and generate a code’s template of a specific question. The parameter of function is the question’s index number.

show next question

leetcode-show-next:

If you solve the question in order, you can go to the next question through leetcode-show-next.

submit the question answer

leetcode-submit:

test the question answer

leetcode-test:

You can specify a test case to check if the answer is correct.

leetcode-emacs's People

Contributors

ginqi7 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.