Skip to content

RichCodersAndMe/LeetCode-Solution

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LeetCode-SolutionLeetCode-Solution

本仓库为LeetCode练习题题解记录,会持续更新各种语言的题解。同时也欢迎使用各种语言的同♂好们加入此项目,为开源贡献力量。

LeetCode is the best platform to help you enhance your skills, expand your knowledge and prepare for technical interviews.

如果想知道各大公司 LeetCode 面试题,可以参看 Companies.md

附上@Blankj的镇楼诗:

明有科举八股,今有 LeetCode。
八股定格式而取文采心意,LeetCode 定题目且重答案背诵。
美其名曰:"practice makes perfect."
为何今不如古?
非也非也,
科举为国取士,LeetCode 为 Google 筛码工,各取所需也。

目录

题目 题解 Java JavaScript kotlin
001 Two Sum
007 Reverse Integer
009 Palindrome Number
013 Roman to Integer
014 Longest Common Prefix
020 Valid Parentheses
021 Merge Two Sorted Lists
026 Remove Duplicates from Sorted Array
027 Remove Element
028 Implement strStr()
035 Search Insert Position
038 Count and Say
053 Maximum Subarray
058 Length of Last Word
066 Plus One
067 Add Binary
069 Sqrt(x)
070 Climbing Stairs
083 Remove Duplicates from Sorted List
088 Merge Sorted Array
100 Same Tree
101 Symmetric Tree
104 Maximum Depth of Binary Tree
107 Binary Tree Level Order Traversal II
108 Convert Sorted Array to Binary Search Tree
110 Balanced Binary Tree
111 Minimum Depth of Binary Tree
112 Path Sum
118 Pascal's Triangle
119 Pascal's Triangle II
121 Best Time to Buy and Sell Stock
122 Best Time to Buy and Sell Stock II
226 Invert Binary Tree
543 Diameter of Binary Tree
561 Array Partition I
643 Maximum Average Subarray I
645 Set Mismatch
653 Two Sum IV - Input is a BST
657 Judge Route Circle
661 Image Smoother
665 Non-decreasing Array
669 Trim a Binary Search Tree
671 Second Minimum Node In a Binary Tree
674 Longest Continuous Increasing Subsequence
680 Valid Palindrome II
682 Baseball Game
686 Repeated String Match
687 Longest Univalue Path
693 Binary Number with Alternating Bits
695 Max Area of Island
696 Count Binary Substrings
697 Degree of an Array
717 1-bit and 2-bit Characters
720 Longest Word in Dictionary
724 Find Pivot Index
728 Self Dividing Numbers
733 Flood Fill
744 Find Smallest Letter Greater Than Target
746 Min Cost Climbing Stairs
747 Largest Number At Least Twice of Others
762 Prime Number of Set Bits in Binary Representation
766 Toeplitz Matrix
771 Jewels and Stones
783 Minimum Distance Between BST Nodes
784 Letter Case Permutation
788 Rotated Digits
796 Rotate String
804 Unique Morse Code Words
806 Number of Lines To Write String
题目 题解 Java JavaScript kotlin
002 Add Two Numbers
003 Longest Substring Without Repeating Characters
005 Longest Palindromic Substring
006 ZigZag Conversion
008 String to Integer (atoi)
011 Container With Most Water
012 Integer to Roman
015 3Sum
016 3Sum Closest
017 Letter Combinations of a Phone Number
018 4Sum
019 Remove Nth Node From End of List
022 Generate Parentheses
024 Swap Nodes in Pairs
029 Divide Two Integers
033 Search in Rotated Sorted Array
043 Multiply Strings
049 Group Anagrams
050 Pow(x, n)
056 Merge Intervals
554 Brick Wall
题目 题解 Java JavaScript kotlin
004 Median of Two Sorted Arrays
010 Regular Expression Matching
023 Merge k Sorted Lists
025 Reverse Nodes in k-Group
030 Substring with Concatenation of All Words
044 Wildcard Matching
057 Insert Interval
068 Text Justification

库维护须知

库维护须知.md

贡献者名单

排名不分先后

  • 感谢@Mukyu, 提供Java题解。
  • 感谢@taryn, 提供JavaScript题解。
  • 感谢@Wang-YS, 提供JavaScrip代码。
  • 感谢@Blankj, 提供Java题解、镇楼诗文档编写规范
  • 感谢@WangXin, 提供kotlin代码、文档整理库维护规范

Releases

No releases published

Packages

No packages published

Contributors 5