Getting Started • About • Table of Contents • Acknowledgment • FAQ •
Made by Xing XiMing • 🌌 https://xingximing-xxm.github.io/
There are not only LeetCode solutions but also notes on various algorithm techniques.
Everything in this project is based on the Java language, using features such as the Java language paradigm.
- Search for a specific Code. Can't find one? Please report a new Code here.
Section #Getting Started contains one hundred popular interview problems, which is a good place to start.
LeetCode's TOP interview questions
#1Two Sum#2Add Two Numbers#3Longest Substring Without Repeating Characters#4Median of Two Sorted Arrays#5Longest Palindromic Substring#7Reverse Integer#8String to Integer (atoi)#10Regular Expression Matching#11Container With Most Water#13Roman to Integer#14Longest Common Prefix#153Sum#17Letter Combinations of a Phone Number#19Remove Nth Node From End of List#20Valid Parentheses#21Merge Two Sorted Lists#22Generate Parentheses#23Merge k Sorted Lists#26Remove Duplicates from Sorted Array#45Jump Game II#55Jump Game#78Subsets#101Symmetric Tree#103Binary Tree Zigzag Level Order Traversal#104Maximum Depth of Binary Tree#121Best Time to Buy and Sell Stock#122Best Time to Buy and Sell Stock II
Summary of algorithm notes:
- Sort
- Math
- Bit Manipulation
- String
- Two Pointers
- Sliding Window
- Binary search
- Breadth First Search
- Depth First Search
- Graph
- Backtracking
- Greedy Algorithm
- Dynamic Programming
- Knapsack problem
- Best Time to Buy and Sell Stock
Section #Table of Contents contains the summary of the algorithm notes and all the problems.
Expand Set of LeetCode Problems
#88Merge Sorted Array#148Sort List#179Largest Number#215Kth Largest Element in an Array
#50Pow(x,n)#263Ugly Number#264Ugly Number II#914X of a Kind in a Deck of Cards#1201Ugly Number III#1227Airplane Seat Assignment Probability#1524Number of Sub-arrays With Odd Sum#1551Minimum Operations to Make Array Equal
#1Two Sum#9Palindrome Number#26Remove Duplicates from Sorted Array#19Remove Nth Node From End of List
#27Remove Element#35Search Insert Position#42Trapping Rain Water#66Plus One#73Set Matrix Zeroes#75Sort Colors#76Minimum Window Substring#80Remove Duplicates from Sorted Array II#81Search in Rotated Sorted Array II#125Valid Palindrome#167Two Sum II - Input array is sorted#344Reverse String#438Find All Anagrams in a String#485Max Consecutive Ones#567Permutation in String#1004Max Consecutive Ones III#1234Replace the Substring for Balanced String
#54Spiral Matrix
#2Add Two Numbers#21Merge Two Sorted Lists#23Merge k Sorted Lists#25Reverse Nodes in k-Group#61Rotate List#92Reverse Linked List II#138Copy List with Random Pointer#141Linked List Cycle#142Linked List Cycle II#206Reverse Linked List#237Delete Node in a Linked List#876Middle of the Linked List#725Split Linked List in Parts#1171Remove Zero Sum Consecutive Nodes from Linked List#1290Convert Binary Number in a Linked List to Integer#1669Merge In Between Linked Lists
#20Valid Parentheses#50Pow(x,n)#84Largest Rectangle in Histogram#94Binary Tree Inorder Traversal#144Binary Tree Preorder Traversal#145Binary Tree Postorder Traversal#1441Build an Array With Stack Operations
#102Binary Tree Level Order Traversal#225Implement Stack using Queues#232Implement Queue using Stacks#239Sliding Window Maximum#622Design Circular Queue#641Design Circular Deque#933Number of Recent Calls#950Reveal Cards In Increasing Order#1306Jump Game III#1696Jump Game VI
#98Validate Binary Search Tree#103Binary Tree Zigzag Level Order Traversal#105Construct Binary Tree from Preorder and Inorder Traversal#114Flatten Binary Tree to Linked List#116Populating Next Right Pointers in Each Node#222Count Complete Tree Nodes#226Invert Binary Tree#230Kth Smallest Element in a BST#236Lowest Common Ancestor of a Binary Tree#297Serialize and Deserialize Binary Tree#341Flatten Nested List Iterator#450Delete Node in a BST#538Convert BST to Greater Tree#652Find Duplicate Subtrees#654Maximum Binary Tree#700Search in a Binary Search Tree#701Insert into a Binary Search Tree#814Binary Tree Pruning#938Range Sum of BST
#207Course Schedule#210Course Schedule II#797All Paths From Source to Target
#111Minimum Depth of Binary Tree#690Employee Importance#752Open the Lock#1345Jump Game IV
#4Median of Two Sorted Arrays#34Find First and Last Position of Element in Sorted Array#69Sqrt(x)#74Search a 2D Matrix#153Find Minimum in Rotated Sorted Array#154Find Minimum in Rotated Sorted Array II#704Binary Search#1482Minimum Number of Days to Make m Bouquets
#17Letter Combinations of a Phone Number#22Generate Parentheses#46Permutations#51N-Queens#78Subsets#79Word Search#698Partition to K Equal Sum Subsets
#45Jump Game II#55Jump Game#435Non-overlapping Intervals#452Minimum Number of Arrows to Burst Balloons#781Rabbits in Forest#1024Video Stitching#1221Split a String in Balanced Strings#1431Kids With the Greatest Number of Candies#1403Minimum Subsequence in Non-Increasing Order
#7Reverse Integer#1720Decode XORed Array
#5Longest Palindromic Substring#53Maximum Subarray#72Edit Distance#87Scramble String#91Decode Ways#121Best Time to Buy and Sell Stock#122Best Time to Buy and Sell Stock II#123Best Time to Buy and Sell Stock III#188Best Time to Buy and Sell Stock IV#309Best Time to Buy and Sell Stock with Cooldown#714Best Time to Buy and Sell Stock with Transaction Fee#213House Robber II#300Longest Increasing Subsequence#322Coin Change#354Russian Doll Envelopes#583Delete Operation for Two Strings#1143Longest Common Subsequence
#12Integer to Roman#13Roman to Integer
- All the java code was tested under version 8 ✅.
-
Git commit format:
git commit -m "feat/fix/docs(#problem_id): | Description:(unnecessary), Solution:(unnecessary)"message explain feat Commit a solution fix A bug fix perf A code change that improves performance docs Documentation only changes test Adding missing tests or correcting existing tests