GitHub - huhuanming/leetcode: Multiple Programming Languages in LeetCode

leetcode is a project including multiple programming languages for LeetCode.


TODO

  • Support Swift and Golang
  • Add Detail Solution in comment
  • Add ci in GitHub
  • Add Coding Style Checker before test
  • Solve All solution

Requirements

Language Version Unit Test Coding Style Checker
C GNU99 YES NO
Java JDK 8 YES Coming Soon
Node.js 5.11.0 YES Coming Soon
Python 2.7.10 YES Coming Soon
Ruby 2.3.0 YES YES
Swift Apple Swift version 2.3 YES Coming Soon
Golang 1.6.2 YES Coming Soon

How To Get Started

###C

Open by Xcode 7.1 and build it.

###Java

Open by IntelliJ IDEA 15.

###Node.js

At first, you should install node_modules.

Run the test by this.

###Python

Run the test by this.

###Ruby

Run the test by this.

###Swift

Open by Xcode 7.1 and build it.

###Golang

Run the test by this.

Find A Solution

If you want to get a solution named 'Reverse String', you can do it in root dictionary.

grep -nr "Reverse String" .

Just get all!

./C/LeetCode/LeetCode/reverseString.c:1:// 344. Reverse String
./Golang/reverse_string.go:1:// 344. Reverse String
./Java/LeetCode/src/com/leet_code/solution/ReverseString.java:1:// 344. Reverse String
./Nodejs/reverse_string.js:1:// 344. Reverse String
./Python/reverse_string.py:1:# 344. Reverse String
./Ruby/reverse_string.rb:1:# 344. Reverse String
./Swift/LeetCode/LeetCode/ReverseString.swift:1:// 344. Reverse String