GithubHelp home page GithubHelp logo

leetcode-java's Introduction

leetcode-java

LeetCode solutions written in Java.

持续更新中...

参考 Blankj/awesome-java-leetcode,源代码都在 src 目录中,相关解题思路和分析都在 note 目录中。

Easy

以下是 LeetCode 官方精选的经典面试问题列表: Top Interview Questions Easy Collection

Array

# Title
26 Remove Duplicates from Sorted Array
122 Best Time to Buy and Sell Stock II
189 Rotate Array
217 Contains Duplicate
136 Single Number
350 Intersection of Two Arrays II
66 Plus One
283 Move Zeroes
1 Two Sum
36 Valid Sudoku
48 Rotate Image

Strings

# Title
344 Reverse String
7 Reverse Integer
387 First Unique Character in a String
242 Valid Anagram
125 Valid Palindrome
8 String to Integer (atoi)
28 Implement strStr()
38 count-and-say
14 Longest Common Prefix

Linked List

# Title
237 Delete Node in a Linked List
19 Remove Nth Node From End of List
206 Reverse Linked List
21 Merge Two Sorted Lists
234 Palindrome Linked List
141 Linked List Cycle

Trees

# Title
104 Maximum Depth of Binary Tree
98 Validate Binary Search Tree
101 Symmetric Tree
102 Binary Tree Level Order Traversal
108 Convert Sorted Array to Binary Search Tree

Sorting and Searching

# Title
88 Merge Sorted Array
278 First Bad Version

Dynamic Programming

# Title
70 Climbing Stairs
121 Best Time to Buy and Sell Stock
53 Maximum Subarray
198 House Robber

Design

# Title
384 Shuffle an Array
155 Min Stack

Math

# Title
412 Fizz Buzz
204 Count Primes
326 Power of Three
13 Roman to Integer

Others

# Title
191 Number of 1 Bits
461 Hamming Distance
190 Reverse Bits
118 Pascal's Triangle
20 Valid Parentheses
268 Missing Number

leetcode-java's People

Contributors

andavid avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.