Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

leetcode - My Java solutions in leetcode.com

Problems

  1. No.1 Two Sum | 两数之和
  2. No.2 Add Two Numbers | 两数相加
  3. No.3 Longest Substring Without Repeating Characters | 无重复字符的最长子串
  4. No.4 Median of Two Sorted Arrays | 寻找两个有序数组的中位数
  5. No.5 Longest Palindromic Substring | 最长回文子串
  6. No.6 ZigZag Conversion | Z 字形变换
  7. No.7 Reverse Integer | 整数反转
  8. No.8 String to Integer (atoi) | 字符串转换整数 (atoi)
  9. No.9 Palindrome Number | 回文数
  10. No.27 Remove Element | 移除元素

Setup

If the IntelliJ is used, then import this directory as a project. You need just click, click and click in the UI.

If an code editor are used, you may need to setup the development environment in a terminal.

./gradlew build

Develop

Add new solutions as classes in src/main/java, and their tests in src/test/java.

Test

./gradlew test