Skip to content

Latest commit

 

History

History
executable file
·
60 lines (27 loc) · 1.3 KB

CONTRIBUTING.md

File metadata and controls

executable file
·
60 lines (27 loc) · 1.3 KB

Welcome! Thank you for contributing to myleetcode!

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:.