English | 简体中文
This repository is include my LeetCode's problem solution,although some aren't prefect, I will try my best to prefect it.Beside,I will write how I solve with English and Chinese and its complexity.
My leetcode account : cartoonYu
My leetcode china account : cartoon
201.Bitwise AND of Numbers Range
693.Binary Number with Alternating Bits
1009.Complement of Base 10 Integer
1018.Binary Prefix Divisible By 5
1232.Check If It Is a Straight Line
1486.XOR Operation in an Array
349.Intersection of Two Arrays
350.Intersection of Two Arrays II
380.Insert Delete GetRandom O(1)
423.Reconstruct Original Digits from English
442.Find All Duplicates in an Array
448.Find All Numbers Disappeared in an Array
453.Minimum Moves to Equal Array Elements
462.Minimum Moves to Equal Array Elements II
599.Minimum Index Sum of Two Lists
628.Maximum Product of Three Numbers
643.Maximum Average Subarray I
961.N-Repeated Element in Size 2N Array
989.Add to Array-Form of Integer
1200.Minimum Absolute Difference
1207.Unique Number of Occurrences
1299. Replace Elements with Greatest Element on Right Side
1304.Find N Unique Integers Sum up to Zero
1313.Decompress Run-Length Encoded List
1342.Number of Steps to Reduce a Number to Zero
1351.Count Negative Numbers in a Sorted Matrix
1365.How Many Numbers Are Smaller Than the Current Number
1394.Find Lucky Integer in an Array
1413.Minimum Value to Get Positive Step by Step Sum
1431.Kids With the Greatest Number of Candies
1450.Number of Students Doing Homework at a Given Time
1460.Make Two Arrays Equal by Reversing Sub-arrays
1464.Maximum Product of Two Elements in an Array
1491.Average Salary Excluding the Minimum and Maximum Salary
1502.Can Make Arithmetic Progression From Sequence
2342.Max Sum of a Pair With Equal Sum of Digits
2824.Count Pairs Whose Sum is Less than Target
2336.Smallest Number in Infinite Set
19.Remove Nth Node From End of List
82.Remove Duplicates from Sorted List II
160.Intersection of Two Linked Lists
203.Remove Linked List Elements
237.Delete Node in a Linked List
3.Longest Substring Without Repeating Characters
387.First Unique Character in a String
451.Sort Characters By Frequency
551.Student Attendance Record I
884.Uncommon Words from Two Sentences
1047.Remove All Adjacent Duplicates In String
1189.Maximum Number of Balloons
1422.Maximum Score After Splitting a String
1592.Rearrange Spaces Between Words
1614.Maximum Nesting Depth of the Parentheses
1684.Count the Number of Consistent Strings
150.Evaluate Reverse Polish Notation
232.Implement Queue using Stacks
94.Binary Tree Inorder Traversal
98.Validate Binary Search Tree
102.Binary Tree Level Order Traversal
103.Binary Tree Zigzag Level Order Traversal
104.Maximum Depth of Binary Tree
105.Construct Binary Tree from Preorder and Inorder Traversal
106.Construct Binary Tree from Inorder and Postorder Traversal
107.Binary Tree Level Order Traversal II
108.Convert Sorted Array to Binary Search Tree
109.Convert Sorted List to Binary Search Tree
111.Minimum Depth of Binary Tree
114.Flatten Binary Tree to Linked List
116.Populating Next Right Pointers in Each Node
124.Binary Tree Maximum Path Sum
144.Binary Tree Preorder Traversal
145.Binary Tree Postorder Traversal
173.Binary Search Tree Iterator
199.Binary Tree Right Side View
222. Count Complete Tree Nodes
230.Kth Smallest Element in a BST
235.Lowest Common Ancestor of a Binary Search Tree
501.Find Mode in Binary Search Tree
513.Find Bottom Left Tree Value
515.Find Largest Value in Each Tree Row
530.Minimum Absolute Difference in BST
538.Convert BST to Greater Tree
700.Search in a Binary Search Tree
783.Minimum Distance Between BST Nodes
1038.Binary Search Tree to Greater Sum Tree
33.Search in Rotated Sorted Array
34.Find First and Last Position of Element in Sorted Array
153.Find Minimum in Rotated Sorted Array
154.Find Minimum in Rotated Sorted Array II
374.Guess Number Higher or Lower
744.Find Smallest Letter Greater Than Target
121.Best Time to Buy and Sell Stock
300.Longest Increasing Subsequence
303.Range Sum Query - Immutable
309.Best Time to Buy and Sell Stock with Cooldown
357.Count Numbers with Unique Digits
714.Best Time to Buy and Sell Stock with Transaction Fee
718.Maximum Length of Repeated Subarray
1221.Split a String in Balanced Strings
1725.Number Of Rectangles That Can Form The Largest Square
1736.Latest Time by Replacing Hidden Digits
2216.Minimum Deletions to Make Array Beautiful
17.Letter Combinations of a Phone Number