Skip to main content

LeetCode CLI interface and helper functions.

Project description

leetcode-with-me

lc on PyPI

A small tool for writing solutions to LeetCode problems.

Features

  • Initialize a directory with Git and connect to a GitHub repo.
  • Create a solution from default template for writing LeetCode solutions.
  • Set up you own writing template.
  • Add/Remove categories which LeetCode problems belong to.
  • Upload solutions to GitHub repo.
  • Support executing commands in any directory.
  • 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>

  • 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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

leetcode_with_me-0.2.2-py3-none-any.whl (6.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page