GithubHelp home page GithubHelp logo

leetcode's Introduction

LeetCode

LeetCode solutions with Chinese explanation. LeetCode中文题解。
每个题目都保证击败超过80%的提交,并尽量给出多种解法并分析算法复杂度。
持续更新中,欢迎交流,欢迎star :)

# 题目 题解 难度
1 Two Sum C++ Easy
2 Add Two Numbers C++ Medium
3 Longest Substring Without Repeating Characters C++ Medium
5 Longest Palindromic Substring C++ Medium
6 ZigZag Conversion C++ Medium
7 Reverse Integer C++ Easy
8 String to Integer (atoi) C++ Medium
9 Palindrome Number C++ Easy
11 Container With Most Water C++ Medium
12 Integer to Roman C++ Medium
13 Roman to Integer C++ Easy
14 Longest Common Prefix C++ Easy
15 3Sum C++ Medium
16 3Sum Closest C++ Medium
17 Letter Combinations of a Phone Number C++ Medium
18 4Sum C++ Medium
19 Remove Nth Node From End of List C++ Medium
20 Valid Parentheses C++ Easy
21 Merge Two Sorted Lists C++ Easy
22 Generate Parentheses C++ Medium
24 Swap Nodes in Pairs C++ Medium
26 Remove Duplicates from Sorted Array C++ Easy
27 Remove Element C++ Easy
29 Divide Two Integers C++ Medium
31 Next Permutation C++ Medium
34 Find First and Last Position of Element in Sorted C++ Medium
33 Search in Rotated Sorted Array C++ Medium
35 Search Insert Position C++ Easy
36 Valid Sudoku C++ Medium
38 Count and Say C++ Easy
39 Combination Sum C++ Medium
40 Combination Sum II C++ Medium
43 Multiply Strings C++ Medium
46 Permutations C++ Medium
47 Permutations II C++ Medium
48 Rotate Image C++ Medium
49 Group Anagrams C++ Medium
50 Pow(x, n) C++ Medium
53 Maximum Subarray C++ Easy
54 Spiral Matrix C++ Medium
55 Jump Game C++ Medium
56 Merge Intervals C++ Medium
58 Length of Last Word C++ Easy
59 Spiral Matrix II C++ Medium
60 Permutation Sequence C++ Medium
61 Rotate List C++ Medium
62 Unique Paths C++ Medium
63 Unique Paths II C++ Medium
66 Plus One C++ Easy
67 Add Binary C++ Easy
69 Sqrt(x) C++ Easy
70 Climbing Stairs C++ Easy
71 Simplify Path C++ Medium
73 Set Matrix Zeroes C++ Medium
74 Search a 2D Matrix C++ Medium
75 Sort Colors C++ Medium
77 Combinations C++ Medium
78 Subsets C++ Medium
79 Word Search C++ Medium
80 Remove Duplicates from Sorted Array II C++ Medium
81 Search in Rotated Sorted Array II C++ Medium
82 Remove Duplicates from Sorted List II C++ Medium
83 Remove Duplicates from Sorted List C++ Easy
86 Partition List C++ Medium
88 Merge Sorted Array C++ Easy
100 Same Tree C++ Easy
101 Symmetric Tree C++ Easy
104 Maximum Depth of Binary Tree C++ Easy
107 Binary Tree Level Order Traversal II C++ Easy
108 Convert Sorted Array to Binary Search Tree C++ Easy
110 Balanced Binary Tree C++ Easy
111 Minimum Depth of Binary Tree C++ Easy
112 Path Sum C++ Easy
118 Pascal's Triangle C++ Easy
119 Pascal's Triangle II C++ Easy
121 Best Time to Buy and Sell Stock C++ Easy
122 Best Time to Buy and Sell Stock II C++ Easy
125 Valid Palindrome C++ Easy
136 Single Number C++ Easy
141 Linked List Cycle C++ Easy
155 Min Stack C++ Easy
160 Intersection of Two Linked Lists C++ Easy
167 Two Sum II - Input array is sorted C++ Easy
168 Excel Sheet Column Title C++ Easy
169 Majority Element C++ Easy
171 Excel Sheet Column Number C++ Easy
172 Factorial Trailing Zeroes C++ Easy
189 Rotate Array C++ Easy
190 Reverse Bits C++ Easy
191 Number of 1 Bits C++ Easy
198 House Robber C++ Easy
202 Happy Number C++ Easy
203 Remove Linked List Elements C++ Easy
204 Count Primes C++ Easy
205 Isomorphic Strings C++ Easy
206 Reverse Linked List C++ Easy
217 Contains Duplicate C++ Easy
219 Contains Duplicate II C++ Easy
225 Implement Stack using Queues C++ Easy
226 Invert Binary Tree C++ Easy
231 Power of Two C++ Easy
232 Implement Queue using Stacks C++ Easy
234 Palindrome Linked List C++ Easy
235 Lowest Common Ancestor of a Binary Search Tree C++ Easy
237 Delete Node in a Linked List C++ Easy
242 Valid Anagram C++ Easy
257 Binary Tree Paths C++ Easy
258 Add Digits C++ Easy
263 Ugly Number C++ Easy
268 Missing Number C++ Easy
278 First Bad Version C++ Easy
283 Move Zeroes C++ Easy
290 Word Pattern C++ Easy
292 Nim Game C++ Easy
303 Range Sum Query - Immutable C++ Easy
326 Power of Three C++ Easy
342 Power of Four C++ Easy
344 Reverse String C++ Easy
345 Reverse Vowels of a String C++ Easy
349 Intersection of Two Arrays C++ Easy
350 Intersection of Two Arrays II C++ Easy
367 Valid Perfect Square C++ Easy
371 Sum of Two Integers C++ Easy
374 Guess Number Higher or Lower C++ Easy
383 Ransom Note C++ Easy
387 First Unique Character in a String C++ Easy
389 Find the Difference C++ Easy
400 Nth Digit C++ Easy
404 Sum of Left Leaves C++ Easy
405 Convert a Number to Hexadecimal C++ Easy
409 Longest Palindrome C++ Easy
414 Third Maximum Number C++ Easy
415 Add Strings C++ Easy
429 N-ary Tree Level Order Traversal C++ Easy
434 Number of Segments in a String C++ Easy
437 Path Sum III C++ Easy
438 Find All Anagrams in a String C++ Easy
441 Arranging Coins C++ Easy
443 String Compression C++ Easy
447 Number of Boomerangs C++ Easy
448 Find All Numbers Disappeared in an Array C++ Easy
453 Minimum Moves to Equal Array Elements C++ Easy
455 Assign Cookies C++ Easy
459 Repeated Substring Pattern C++ Easy
461 Hamming Distance C++ Easy
463 Island Perimeter C++ Easy
475 Heaters C++ Easy
476 Number Complement C++ Easy
485 Max Consecutive Ones C++ Easy
496 Next Greater Element I C++ Easy
500 Keyboard Row C++ Easy
532 K-diff Pairs in an Array C++ Easy
561 Array Partition I C++ Easy
566 Reshape the Matrix C++ Easy
581 Shortest Unsorted Continuous Subarray C++ Easy
605 Can Place Flowers C++ Easy
628 Maximum Product of Three Numbers C++ Easy
643 Maximum Average Subarray I C++ Easy
661 Image Smoother C++ Easy
665 Non-decreasing Array C++ Easy

leetcode's People

Contributors

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