8000 GitHub - RichCodersAndMe/LeetCode-Solution at f7f1724ef73e4d1b0570026a2b7ca5d79461e08d
[go: up one dir, main page]

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

库维护须知

库维护须知.md

贡献者名单

排名不分先后

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

Releases

No releases published

Packages

No packages published

Contributors 5

0