Skip to content

LeetCode 00xx

LeetCode practice notes for problems 1 through 99, including A clear explanation of the Two Sum problem using brute force first, then an optimized hash map solution.

#TitleDifficultyDescription
1LeetCode 1: Two SumEasyA clear explanation of the Two Sum problem using brute force first, then an optimized hash map solution.
2LeetCode 2: Add Two NumbersMediumA detailed explanation of the Add Two Numbers linked list problem, including digit-by-digit addition, carry handling, and linked list construction.
3LeetCode 3: Longest Substring Without Repeating CharactersMediumA clear explanation of the longest substring problem using sliding window and a hash set.
4LeetCode 4: Median of Two Sorted ArraysHardA detailed explanation of finding the median of two sorted arrays using binary search over partitions.
5LeetCode 5: Longest Palindromic SubstringMediumA detailed explanation of finding the longest palindromic substring using expand-around-center.
6LeetCode 6: Zigzag ConversionMediumA detailed explanation of converting a string into a zigzag pattern using row simulation.
7LeetCode 7: Reverse IntegerMediumA detailed explanation of reversing a signed 32-bit integer while handling overflow correctly.
8LeetCode 8: String to Integer (atoi)MediumA detailed explanation of parsing a string into a 32-bit signed integer with whitespace, sign, digit reading, and clamping rules.
9LeetCode 9: Palindrome NumberEasyA detailed explanation of checking whether an integer is a palindrome using digit operations without converting it to a string.
10LeetCode 10: Regular Expression MatchingHardA detailed explanation of matching a full string against a simplified regular expression with dot and star using dynamic programming.
11LeetCode 11: Container With Most WaterMediumA detailed explanation of finding the maximum water container area using two pointers.
12LeetCode 12: Integer to RomanMediumA detailed explanation of converting an integer into a Roman numeral using a fixed value-symbol table and greedy subtraction.
13LeetCode 13: Roman to IntegerEasyA detailed explanation of converting a Roman numeral string into an integer using symbol values and the subtraction rule.
14LeetCode 14: Longest Common PrefixEasyA detailed explanation of finding the longest common prefix among an array of strings by comparing characters column by column.
15LeetCode 15: 3SumMediumA detailed explanation of finding all unique triplets that sum to zero using sorting and two pointers.
16LeetCode 16: 3Sum ClosestMediumA detailed explanation of finding the sum of three integers closest to a target using sorting and two pointers.
17LeetCode 17: Letter Combinations of a Phone NumberMediumA detailed explanation of generating all possible phone keypad letter combinations using backtracking.
18LeetCode 18: 4SumMediumA detailed explanation of finding all unique quadruplets that sum to a target using sorting and two pointers.
19LeetCode 19: Remove Nth Node From End of ListMediumA detailed explanation of removing the nth node from the end of a singly linked list using two pointers and a dummy node.
20LeetCode 20: Valid ParenthesesEasyA detailed explanation of checking whether a bracket string is valid using a stack.
21LeetCode 21: Merge Two Sorted ListsEasyA detailed explanation of merging two sorted linked lists using a dummy node and pointer splicing.
22LeetCode 22: Generate ParenthesesMediumA detailed explanation of generating all well-formed parentheses strings using backtracking.
23LeetCode 23: Merge k Sorted ListsHardA detailed explanation of merging k sorted linked lists using a min heap.
24LeetCode 24: Swap Nodes in PairsMediumA detailed explanation of swapping every two adjacent nodes in a linked list using pointer manipulation.
25LeetCode 25: Reverse Nodes in k-GroupHardA detailed explanation of reversing linked-list nodes in groups of k using pointer manipulation and constant extra space.
26LeetCode 26: Remove Duplicates from Sorted ArrayEasyA clear explanation of removing duplicates from a sorted array in place using two pointers.
27LeetCode 27: Remove ElementEasyA clear explanation of removing all occurrences of a value from an array in place using a write pointer.
28LeetCode 28: Find the Index of the First Occurrence in a StringEasyA clear explanation of finding the first occurrence of one string inside another using direct string matching.
29LeetCode 29: Divide Two IntegersMediumA clear explanation of integer division without using multiplication, division, or modulo, using repeated doubling with bit shifts.
30LeetCode 30: Substring with Concatenation of All WordsHardA clear explanation of finding all starting indices where a substring is formed by concatenating every word exactly once.
31LeetCode 31: Next PermutationMediumA clear explanation of finding the next lexicographically greater permutation in place using a right-to-left scan.
32LeetCode 32: Longest Valid ParenthesesHardA clear explanation of finding the longest well-formed parentheses substring using a stack of indices.
33LeetCode 33: Search in Rotated Sorted ArrayMediumA clear explanation of searching a rotated sorted array in logarithmic time using modified binary search.
34LeetCode 34: Find First and Last Position of Element in Sorted ArrayMediumA clear explanation of finding the first and last index of a target in a sorted array using two binary searches.
35LeetCode 35: Search Insert PositionEasyA clear explanation of finding the index of a target, or where it should be inserted, using binary search.
36LeetCode 36: Valid SudokuMediumA clear explanation of checking whether a partially filled Sudoku board is valid using hash sets.
37LeetCode 37: Sudoku SolverHardA clear explanation of solving a Sudoku board using backtracking and constraint checking.
38LeetCode 38: Count and SayMediumA clear explanation of generating the count-and-say sequence using run-length encoding.
39LeetCode 39: Combination SumMediumA clear explanation of finding all unique combinations that sum to a target using backtracking.
40LeetCode 40: Combination Sum IIMediumA clear explanation of finding unique combinations that sum to a target when each array element may be used at most once.
41LeetCode 41: First Missing PositiveHardA clear explanation of the First Missing Positive problem using in-place index placement to achieve O(n) time and O(1) extra space.
42LeetCode 42: Trapping Rain WaterHardA clear explanation of the Trapping Rain Water problem using left and right boundaries, then an optimized two-pointer solution.
43LeetCode 43: Multiply StringsMediumA clear explanation of Multiply Strings using grade-school multiplication with digit arrays.
44LeetCode 44: Wildcard MatchingHardA clear explanation of Wildcard Matching using dynamic programming over string and pattern prefixes.
45LeetCode 45: Jump Game IIMediumA clear explanation of Jump Game II using a greedy range expansion approach to find the minimum number of jumps.
46LeetCode 46: PermutationsMediumA clear explanation of Permutations using depth-first search and backtracking.
47LeetCode 47: Permutations IIMediumA clear explanation of Permutations II using sorting, depth-first search, and duplicate-skipping backtracking.
48LeetCode 48: Rotate ImageMediumA clear explanation of Rotate Image using in-place matrix transpose and row reversal.
49LeetCode 49: Group AnagramsMediumA clear explanation of Group Anagrams using a hash map keyed by each word’s sorted character signature.
50LeetCode 50: Pow(x, n)MediumA clear explanation of Pow(x, n) using binary exponentiation to compute powers in logarithmic time.
51LeetCode 51: N-QueensHardA clear guide to solving N-Queens with backtracking, row-by-row placement, and constant-time conflict checks.
52LeetCode 52: N-Queens IIHardA clear guide to solving N-Queens II by counting valid queen placements with backtracking.
53LeetCode 53: Maximum SubarrayMediumA clear guide to solving Maximum Subarray with brute force first, then Kadane’s dynamic programming algorithm.
54LeetCode 54: Spiral MatrixMediumA clear guide to reading a matrix in spiral order using shrinking boundaries.
55LeetCode 55: Jump GameMediumA clear guide to solving Jump Game with greedy reachability.
56LeetCode 56: Merge IntervalsMediumA clear guide to solving Merge Intervals by sorting intervals and merging them in one pass.
57LeetCode 57: Insert IntervalMediumA clear guide to solving Insert Interval with one linear scan over sorted, non-overlapping intervals.
58LeetCode 58: Length of Last WordEasyA clear guide to solving Length of Last Word by scanning the string from right to left.
59LeetCode 59: Spiral Matrix IIMediumA clear guide to generating an n x n matrix filled from 1 to n squared in spiral order.
60LeetCode 60: Permutation SequenceHardA clear guide to finding the kth permutation sequence using factorial blocks instead of generating all permutations.
61LeetCode 61: Rotate ListMediumA clear guide to rotating a linked list to the right by k places using a circular list.
62LeetCode 62: Unique PathsMediumA clear guide to counting unique paths in a grid using dynamic programming.
63LeetCode 63: Unique Paths IIMediumA clear guide to counting unique paths in a grid with obstacles using dynamic programming.
64LeetCode 64: Minimum Path SumMediumA clear guide to finding the minimum path sum in a grid using dynamic programming.
65LeetCode 65: Valid NumberHardA clear guide to validating whether a string is a valid number using grammar rules and one left-to-right scan.
66LeetCode 66: Plus OneEasyA clear guide to adding one to a large integer represented as an array of digits.
67LeetCode 67: Add BinaryEasyA clear guide to adding two binary strings using two pointers and a carry.
68LeetCode 68: Text JustificationHardA clear guide to formatting text with greedy line packing and even space distribution.
69LeetCode 69: Sqrt(x)EasyA clear guide to computing the integer square root using binary search without built-in exponent functions.
70LeetCode 70: Climbing StairsEasyA clear guide to counting distinct ways to climb stairs using dynamic programming.
71LeetCode 71: Simplify PathMediumA clear guide to simplifying Unix-style file paths using a stack.
72LeetCode 72: Edit DistanceHardA clear guide to computing the minimum number of insert, delete, and replace operations needed to convert one string into another.
73LeetCode 73: Set Matrix ZeroesMediumA clear guide to setting matrix rows and columns to zero in place using the first row and first column as markers.
74LeetCode 74: Search a 2D MatrixMediumA clear guide to searching a sorted 2D matrix using binary search over a virtual one-dimensional array.
75LeetCode 75: Sort ColorsMediumA clear guide to sorting an array of 0s, 1s, and 2s in place using the Dutch National Flag algorithm.
76LeetCode 76: Minimum Window SubstringHardA detailed guide to solving Minimum Window Substring with a sliding window and frequency counters.
77LeetCode 77: CombinationsMediumA detailed guide to solving Combinations with backtracking and pruning.
78LeetCode 78: SubsetsMediumA detailed guide to solving Subsets with backtracking and the include-or-skip recursion idea.
79LeetCode 79: Word SearchMediumA detailed guide to solving Word Search with depth-first search and backtracking on a grid.
80LeetCode 80: Remove Duplicates from Sorted Array IIMediumA detailed guide to solving Remove Duplicates from Sorted Array II with an in-place two-pointer method.
81LeetCode 81: Search in Rotated Sorted Array IIMediumA detailed guide to solving Search in Rotated Sorted Array II with modified binary search and duplicate handling.
82LeetCode 82: Remove Duplicates from Sorted List IIMediumA detailed guide to solving Remove Duplicates from Sorted List II with a dummy node and pointer rewiring.
83LeetCode 83: Remove Duplicates from Sorted ListEasyA detailed guide to solving Remove Duplicates from Sorted List with one pointer and in-place linked list rewiring.
84LeetCode 84: Largest Rectangle in HistogramHardA detailed guide to solving Largest Rectangle in Histogram with a monotonic increasing stack.
85LeetCode 85: Maximal RectangleHardA detailed guide to solving Maximal Rectangle by converting each matrix row into a histogram and applying a monotonic stack.
86LeetCode 86: Partition ListMediumA detailed guide to solving Partition List with two dummy lists while preserving relative order.
87LeetCode 87: Scramble StringHardA detailed guide to solving Scramble String with recursive dynamic programming and memoization.
88LeetCode 88: Merge Sorted ArrayEasyA detailed guide to solving Merge Sorted Array in-place by merging from the back with three pointers.
89LeetCode 89: Gray CodeMediumA detailed guide to solving Gray Code using the binary-to-Gray-code formula.
90LeetCode 90: Subsets IIMediumA detailed guide to solving Subsets II with sorting, backtracking, and duplicate skipping.
91LeetCode 91: Decode WaysMediumA detailed guide to solving Decode Ways with dynamic programming and careful handling of zeroes.
92LeetCode 92: Reverse Linked List IIMediumA detailed guide to solving Reverse Linked List II with a dummy node and in-place sublist reversal.
93LeetCode 93: Restore IP AddressesMediumA detailed guide to solving Restore IP Addresses with backtracking over four valid IP segments.
94LeetCode 94: Binary Tree Inorder TraversalEasyA detailed guide to solving Binary Tree Inorder Traversal with recursion and an iterative stack.
95LeetCode 95: Unique Binary Search Trees IIMediumA detailed guide to solving Unique Binary Search Trees II with recursive tree generation over value ranges.
96LeetCode 96: Unique Binary Search TreesMediumA detailed guide to solving Unique Binary Search Trees with dynamic programming and the Catalan recurrence.
97LeetCode 97: Interleaving StringMediumA detailed guide to solving Interleaving String with two-dimensional dynamic programming.
98LeetCode 98: Validate Binary Search TreeMediumA detailed guide to solving Validate Binary Search Tree with recursive lower and upper bounds.
99LeetCode 99: Recover Binary Search TreeMediumA detailed guide to solving Recover Binary Search Tree with inorder traversal and two misplaced nodes.
LeetCode 1: Two SumA clear explanation of the Two Sum problem using brute force first, then an optimized hash map solution.
6 min
LeetCode 2: Add Two NumbersA detailed explanation of the Add Two Numbers linked list problem, including digit-by-digit addition, carry handling, and linked list construction.
5 min
LeetCode 3: Longest Substring Without Repeating CharactersA clear explanation of the longest substring problem using sliding window and a hash set.
5 min
LeetCode 4: Median of Two Sorted ArraysA detailed explanation of finding the median of two sorted arrays using binary search over partitions.
8 min
LeetCode 5: Longest Palindromic SubstringA detailed explanation of finding the longest palindromic substring using expand-around-center.
4 min
LeetCode 6: Zigzag ConversionA detailed explanation of converting a string into a zigzag pattern using row simulation.
4 min
LeetCode 7: Reverse IntegerA detailed explanation of reversing a signed 32-bit integer while handling overflow correctly.
6 min
LeetCode 8: String to Integer (atoi)A detailed explanation of parsing a string into a 32-bit signed integer with whitespace, sign, digit reading, and clamping rules.
5 min
LeetCode 9: Palindrome NumberA detailed explanation of checking whether an integer is a palindrome using digit operations without converting it to a string.
4 min
LeetCode 10: Regular Expression MatchingA detailed explanation of matching a full string against a simplified regular expression with dot and star using dynamic programming.
6 min
LeetCode 11: Container With Most WaterA detailed explanation of finding the maximum water container area using two pointers.
5 min
LeetCode 12: Integer to RomanA detailed explanation of converting an integer into a Roman numeral using a fixed value-symbol table and greedy subtraction.
4 min
LeetCode 13: Roman to IntegerA detailed explanation of converting a Roman numeral string into an integer using symbol values and the subtraction rule.
5 min
LeetCode 14: Longest Common PrefixA detailed explanation of finding the longest common prefix among an array of strings by comparing characters column by column.
4 min
LeetCode 15: 3SumA detailed explanation of finding all unique triplets that sum to zero using sorting and two pointers.
7 min
LeetCode 16: 3Sum ClosestA detailed explanation of finding the sum of three integers closest to a target using sorting and two pointers.
6 min
LeetCode 17: Letter Combinations of a Phone NumberA detailed explanation of generating all possible phone keypad letter combinations using backtracking.
5 min
LeetCode 18: 4SumA detailed explanation of finding all unique quadruplets that sum to a target using sorting and two pointers.
7 min
LeetCode 19: Remove Nth Node From End of ListA detailed explanation of removing the nth node from the end of a singly linked list using two pointers and a dummy node.
5 min
LeetCode 20: Valid ParenthesesA detailed explanation of checking whether a bracket string is valid using a stack.
5 min
LeetCode 21: Merge Two Sorted ListsA detailed explanation of merging two sorted linked lists using a dummy node and pointer splicing.
6 min
LeetCode 22: Generate ParenthesesA detailed explanation of generating all well-formed parentheses strings using backtracking.
4 min
LeetCode 23: Merge k Sorted ListsA detailed explanation of merging k sorted linked lists using a min heap.
5 min
LeetCode 24: Swap Nodes in PairsA detailed explanation of swapping every two adjacent nodes in a linked list using pointer manipulation.
5 min
LeetCode 25: Reverse Nodes in k-GroupA detailed explanation of reversing linked-list nodes in groups of k using pointer manipulation and constant extra space.
6 min
LeetCode 26: Remove Duplicates from Sorted ArrayA clear explanation of removing duplicates from a sorted array in place using two pointers.
5 min
LeetCode 27: Remove ElementA clear explanation of removing all occurrences of a value from an array in place using a write pointer.
4 min
LeetCode 28: Find the Index of the First Occurrence in a StringA clear explanation of finding the first occurrence of one string inside another using direct string matching.
5 min
LeetCode 29: Divide Two IntegersA clear explanation of integer division without using multiplication, division, or modulo, using repeated doubling with bit shifts.
6 min
LeetCode 30: Substring with Concatenation of All WordsA clear explanation of finding all starting indices where a substring is formed by concatenating every word exactly once.
8 min
LeetCode 31: Next PermutationA clear explanation of finding the next lexicographically greater permutation in place using a right-to-left scan.
5 min
LeetCode 32: Longest Valid ParenthesesA clear explanation of finding the longest well-formed parentheses substring using a stack of indices.
5 min
LeetCode 33: Search in Rotated Sorted ArrayA clear explanation of searching a rotated sorted array in logarithmic time using modified binary search.
6 min
LeetCode 34: Find First and Last Position of Element in Sorted ArrayA clear explanation of finding the first and last index of a target in a sorted array using two binary searches.
5 min
LeetCode 35: Search Insert PositionA clear explanation of finding the index of a target, or where it should be inserted, using binary search.
5 min
LeetCode 36: Valid SudokuA clear explanation of checking whether a partially filled Sudoku board is valid using hash sets.
6 min
LeetCode 37: Sudoku SolverA clear explanation of solving a Sudoku board using backtracking and constraint checking.
5 min
LeetCode 38: Count and SayA clear explanation of generating the count-and-say sequence using run-length encoding.
5 min
LeetCode 39: Combination SumA clear explanation of finding all unique combinations that sum to a target using backtracking.
5 min
LeetCode 40: Combination Sum IIA clear explanation of finding unique combinations that sum to a target when each array element may be used at most once.
6 min
LeetCode 41: First Missing PositiveA clear explanation of the First Missing Positive problem using in-place index placement to achieve O(n) time and O(1) extra space.
6 min
LeetCode 42: Trapping Rain WaterA clear explanation of the Trapping Rain Water problem using left and right boundaries, then an optimized two-pointer solution.
6 min
LeetCode 43: Multiply StringsA clear explanation of Multiply Strings using grade-school multiplication with digit arrays.
5 min
LeetCode 44: Wildcard MatchingA clear explanation of Wildcard Matching using dynamic programming over string and pattern prefixes.
7 min
LeetCode 45: Jump Game IIA clear explanation of Jump Game II using a greedy range expansion approach to find the minimum number of jumps.
5 min
LeetCode 46: PermutationsA clear explanation of Permutations using depth-first search and backtracking.
5 min
LeetCode 47: Permutations IIA clear explanation of Permutations II using sorting, depth-first search, and duplicate-skipping backtracking.
6 min
LeetCode 48: Rotate ImageA clear explanation of Rotate Image using in-place matrix transpose and row reversal.
4 min
LeetCode 49: Group AnagramsA clear explanation of Group Anagrams using a hash map keyed by each word's sorted character signature.
4 min
LeetCode 50: Pow(x, n)A clear explanation of Pow(x, n) using binary exponentiation to compute powers in logarithmic time.
5 min
LeetCode 51: N-QueensA clear guide to solving N-Queens with backtracking, row-by-row placement, and constant-time conflict checks.
6 min
LeetCode 52: N-Queens IIA clear guide to solving N-Queens II by counting valid queen placements with backtracking.
5 min
LeetCode 53: Maximum SubarrayA clear guide to solving Maximum Subarray with brute force first, then Kadane's dynamic programming algorithm.
4 min
LeetCode 54: Spiral MatrixA clear guide to reading a matrix in spiral order using shrinking boundaries.
5 min
LeetCode 55: Jump GameA clear guide to solving Jump Game with greedy reachability.
4 min
LeetCode 56: Merge IntervalsA clear guide to solving Merge Intervals by sorting intervals and merging them in one pass.
4 min
LeetCode 57: Insert IntervalA clear guide to solving Insert Interval with one linear scan over sorted, non-overlapping intervals.
5 min
LeetCode 58: Length of Last WordA clear guide to solving Length of Last Word by scanning the string from right to left.
4 min
LeetCode 59: Spiral Matrix IIA clear guide to generating an n x n matrix filled from 1 to n squared in spiral order.
5 min
LeetCode 60: Permutation SequenceA clear guide to finding the kth permutation sequence using factorial blocks instead of generating all permutations.
5 min
LeetCode 61: Rotate ListA clear guide to rotating a linked list to the right by k places using a circular list.
5 min
LeetCode 62: Unique PathsA clear guide to counting unique paths in a grid using dynamic programming.
5 min
LeetCode 63: Unique Paths IIA clear guide to counting unique paths in a grid with obstacles using dynamic programming.
5 min
LeetCode 64: Minimum Path SumA clear guide to finding the minimum path sum in a grid using dynamic programming.
5 min
LeetCode 65: Valid NumberA clear guide to validating whether a string is a valid number using grammar rules and one left-to-right scan.
5 min
LeetCode 66: Plus OneA clear guide to adding one to a large integer represented as an array of digits.
4 min
LeetCode 67: Add BinaryA clear guide to adding two binary strings using two pointers and a carry.
5 min
LeetCode 68: Text JustificationA clear guide to formatting text with greedy line packing and even space distribution.
7 min
LeetCode 69: Sqrt(x)A clear guide to computing the integer square root using binary search without built-in exponent functions.
4 min
LeetCode 70: Climbing StairsA clear guide to counting distinct ways to climb stairs using dynamic programming.
4 min
LeetCode 71: Simplify PathA clear guide to simplifying Unix-style file paths using a stack.
4 min
LeetCode 72: Edit DistanceA clear guide to computing the minimum number of insert, delete, and replace operations needed to convert one string into another.
6 min
LeetCode 73: Set Matrix ZeroesA clear guide to setting matrix rows and columns to zero in place using the first row and first column as markers.
6 min
LeetCode 74: Search a 2D MatrixA clear guide to searching a sorted 2D matrix using binary search over a virtual one-dimensional array.
5 min
LeetCode 75: Sort ColorsA clear guide to sorting an array of 0s, 1s, and 2s in place using the Dutch National Flag algorithm.
6 min
LeetCode 76: Minimum Window SubstringA detailed guide to solving Minimum Window Substring with a sliding window and frequency counters.
7 min
LeetCode 77: CombinationsA detailed guide to solving Combinations with backtracking and pruning.
6 min
LeetCode 78: SubsetsA detailed guide to solving Subsets with backtracking and the include-or-skip recursion idea.
5 min
LeetCode 79: Word SearchA detailed guide to solving Word Search with depth-first search and backtracking on a grid.
8 min
LeetCode 80: Remove Duplicates from Sorted Array IIA detailed guide to solving Remove Duplicates from Sorted Array II with an in-place two-pointer method.
6 min
LeetCode 81: Search in Rotated Sorted Array IIA detailed guide to solving Search in Rotated Sorted Array II with modified binary search and duplicate handling.
7 min
LeetCode 82: Remove Duplicates from Sorted List IIA detailed guide to solving Remove Duplicates from Sorted List II with a dummy node and pointer rewiring.
6 min
LeetCode 83: Remove Duplicates from Sorted ListA detailed guide to solving Remove Duplicates from Sorted List with one pointer and in-place linked list rewiring.
5 min
LeetCode 84: Largest Rectangle in HistogramA detailed guide to solving Largest Rectangle in Histogram with a monotonic increasing stack.
7 min
LeetCode 85: Maximal RectangleA detailed guide to solving Maximal Rectangle by converting each matrix row into a histogram and applying a monotonic stack.
7 min
LeetCode 86: Partition ListA detailed guide to solving Partition List with two dummy lists while preserving relative order.
6 min
LeetCode 87: Scramble StringA detailed guide to solving Scramble String with recursive dynamic programming and memoization.
7 min
LeetCode 88: Merge Sorted ArrayA detailed guide to solving Merge Sorted Array in-place by merging from the back with three pointers.
6 min
LeetCode 89: Gray CodeA detailed guide to solving Gray Code using the binary-to-Gray-code formula.
6 min
LeetCode 90: Subsets IIA detailed guide to solving Subsets II with sorting, backtracking, and duplicate skipping.
6 min
LeetCode 91: Decode WaysA detailed guide to solving Decode Ways with dynamic programming and careful handling of zeroes.
7 min
LeetCode 92: Reverse Linked List IIA detailed guide to solving Reverse Linked List II with a dummy node and in-place sublist reversal.
6 min
LeetCode 93: Restore IP AddressesA detailed guide to solving Restore IP Addresses with backtracking over four valid IP segments.
6 min
LeetCode 94: Binary Tree Inorder TraversalA detailed guide to solving Binary Tree Inorder Traversal with recursion and an iterative stack.
4 min
LeetCode 95: Unique Binary Search Trees IIA detailed guide to solving Unique Binary Search Trees II with recursive tree generation over value ranges.
7 min
LeetCode 96: Unique Binary Search TreesA detailed guide to solving Unique Binary Search Trees with dynamic programming and the Catalan recurrence.
5 min
LeetCode 97: Interleaving StringA detailed guide to solving Interleaving String with two-dimensional dynamic programming.
7 min
LeetCode 98: Validate Binary Search TreeA detailed guide to solving Validate Binary Search Tree with recursive lower and upper bounds.
6 min
LeetCode 99: Recover Binary Search TreeA detailed guide to solving Recover Binary Search Tree with inorder traversal and two misplaced nodes.
6 min