Skip to content

Document my LeetCode solution with chinese comments and multiple programming languages.

Notifications You must be signed in to change notification settings

yuhexiong/leetCode-solve-and-explain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LeetCode Solve And Explain

Document my LeetCode solution with comprehensive chinese comments and incorporate multiple programming languages.

Shortcut To Solutions

easy Problem 1 Two Sum: C | C++ | Python | Go | TypeScript
medium Problem 2 Add Two Numbers: C++ | Python | Go
medium Problem 3 Longest Substring Without Repeating Characters: Python
hard Problem 4 Median of Two Sorted Arrays: Python
medium Problem 5 Longest Palindromic Substring: Python
medium Problem 6 Zigzag Conversion: Python
medium Problem 7 Reverse Integer: C++
medium Problem 8 String to Integer (atoi): C++
easy Problem 9 Palindrome Number: C++ | Go | Java
medium Problem 12 Integer to Roman: C++ | Java
medium Problem 17 Letter Combinations of a Phone Number: Python
easy Problem 27 Remove Element: C++ | Java
medium Problem 34 Find First and Last Position of Element in Sorted Array: C++ | Python
easy Problem 35 Search Insert Position: C | C++ | TypeScript
medium Problem 48 Rotate Image: C++ | Java
medium Problem 50 Pow(x, n): C++ | Go | Java
easy Problem 58 Length of Last Word: C++ | Python | Go
medium Problem 62 Unique Paths: C++ | Java
easy Problem 66 Plus One: C++ | Python | Go | Java
easy Problem 69 Sqrt(x): C++ | Go | Java
easy Problem 100 Same Tree: TypeScript | Java
medium Problem 120 Triangle: C++ | Go | Java
hard Problem 154 Find Minimum in Rotated Sorted Array II: C++ | Go
medium Problem 164 Maximum Gap: C | C++
medium Problem 176 Second Highest Salary: MySQL
medium Problem 177 Nth Highest Salary: MySQL
medium Problem 178 Rank Scores: MySQL
medium Problem 180 Consecutive Numbers: MySQL
medium Problem 184 Department Highest Salary: MySQL
hard Problem 185 Department Top Three Salaries: MySQL
medium Problem 237 Delete Node in a Linked List: C++
hard Problem 262 Trips and Users: MySQL
easy Problem 404 Sum of Left Leaves: Python
medium Problem 565 Array Nesting: C | C++ | Go | Java
medium Problem 648 Replace Words: Python
easy Problem 771 Jewels and Stones: Python
hard Problem 899 Orderly Queue: C++ | Go | Java
easy Problem 938 Range Sum of BST: Python
medium Problem 970 Powerful Integers: Python
easy Problem 1137 N-th Tribonacci Number: C++ | Go
medium Problem 1248 Count Number: C++ | Go | Java
hard Problem 1289 Minimum Falling Path Sum II: Python
medium Problem 1393 Capital Gain/Loss: MySQL
hard Problem 1402 Reducing Dishes: C++ | Go
easy Problem 1422 Maximum Score After Splitting a String: C++ | Python
hard Problem 1575 Count All Possible Routes: Python
medium Problem 1679 Max Number of K-Sum Pairs: C | C++
medium Problem 1689 Partitioning Into Minimum Number Of Deci-Binary Numbers: C++
hard Problem 2276 Count Integers in Intervals: Python
easy Problem 2331 Evaluate Boolean Binary Tree: Python
medium Problem 2487 Remove Nodes From Linked List: Python
easy Problem 2620 Counter: TypeScript
medium Problem 2627 Debounce: TypeScript
medium Problem 2694 Event Emitter: TypeScript
easy Problem 2703 Return Length of Arguments Passed: TypeScript
easy Problem 2715 Timeout Cancellation: TypeScript
medium Problem 2722 Join Two Arrays by ID: TypeScript | JavaScript
easy Problem 2723 Add Two Promises: TypeScript | JavaScript
easy Problem 2828 Check if a String Is an Acronym of Word: C++
easy Problem 2879 Display the First Three Rows: Python
easy Problem 2884 Modify Columns: Python
medium Problem 2895 Minimum Processing Time: C++
easy Problem 3005 Count Elements With Maximum Frequency: C++
easy Problem 3024 Type of Triangle: C | C++ | Java
easy Problem 3069 Distribute Elements Into Two Arrays I: C++
medium Problem 3075 Maximize Happiness of Selected Children: C | C++ | Go
easy Problem 3110 Score of a String: C | C++
medium Problem 3115 Maximum Prime Difference: C | C++ | Go | JavaScript
easy Problem 3146 Permutation Difference between Two Strings: Go
medium Problem 3147 Taking Maximum Energy From the Mystic Dungeon: C++ | Python
easy Problem 3151 Special Array I: Go
medium Problem 3152 Special Array II: Go
medium Problem 3163 String Compression III: C++
medium Problem 3196 Maximize Total Cost of Alternating Subarrays: Python