Welcome! Thank you for contributing to myleetcode!

June 24, 2022 ยท View on GitHub

We follow the standard GitHub fork & pull approach to pull requests.

This project now provides a LeetCode solution in two languages, and you can provide another language solution for LeetCode if you like. But to maintain a good style, your code must meet the requirements of this project.

Package Path

Now myleetcode project structure is:

  • myleetcode:
    • codes
    • images
    • .gitignore
    • .travis.yml
    • CONTRIBUTING.md
    • LICENSE
    • README.md
    • _config.yml

All solutions of LeetCode, must be created in package of codes.

Code style

Java

  • Class Name: Start with _, then spell problem number of LeetCode.
  • Method Name: Initial in lowercase, then follow hump format.

Python

  • Python File Name: Start with _, then spell problem number of LeetCode.
  • Method Name: Initial in lowercase, then spell with _, if method name have more than one word.

Go

  • Go File Name: Start with _, then spell problem number of LeetCode.
  • Method Name: Initial in lowercase, then follow hump format.

Commit style

  • Specify commit prefix based on language, such as java:ใ€python: and go:.