Skip to content

weiranfu/leetcode-with-me

Repository files navigation

leetcode-with-me

lc on PyPI

A small tool for writing solutions to LeetCode problems.

Features

  • Initialize a directory with Git and connect to your GitHub repo.
  • Write your LeetCode solution from default template.
  • Search and open your LeetCode solution.
  • Set up your own writing template.
  • Add/Remove categories for your LeetCode solutions.
  • Support markdown format.

Installation

$ pip install leetcode-with-me

Usage

  • Initialize a directory and connect to GitHub repo.

    $ lc init <directory> <remote repo>

  • Create a solution markdown for you.

    $ lc new <solution name> <solution category>

  • Search and open a solution.

    $ lc open <search name>

  • Set up your own writing template.

    $ lc template -set <template path>

  • Add/Remove a category.

    $ lc category add <category>

    $ lc category rm <category>

  • Upload solutions to the GitHub repo.

    $ lc upload

See lc --help for more command-line switches and usage instructions.

Development

I would love to hear what you think about leetcode-with-me on issues page

Make pull requests, report bugs, suggest ideas and discuss leetcode-with-me.

License

MIT

About

Share some solutions to LeetCode problems

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages