Thanks to visit codestin.com
Credit goes to github.com

Skip to content

xiaobo1234/leetcode

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

npm install

Run the test by this.

npm run test

###Python

Run the test by this.

nosetests tests

###Ruby

Run the test by this.

rake test

###Swift

Open by Xcode 7.1 and build it.

###Golang

Run the test by this.

go test

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

About

Multiple Programming Languages in LeetCode

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 74.9%
  • Swift 7.5%
  • Python 4.3%
  • Ruby 3.6%
  • Java 3.4%
  • Go 2.7%
  • Other 3.6%