Skip to content

LeetCode 01xx

LeetCode practice notes for problems 100 through 199, including A detailed guide to solving Same Tree with recursive DFS and structural comparison.

#TitleDifficultyDescription
100LeetCode 100: Same TreeEasyA detailed guide to solving Same Tree with recursive DFS and structural comparison.
101LeetCode 101: Symmetric TreeEasyA clear explanation of checking whether a binary tree is symmetric using mirror recursion.
102LeetCode 102: Binary Tree Level Order TraversalMediumA clear explanation of binary tree level order traversal using breadth-first search and a queue.
103LeetCode 103: Binary Tree Zigzag Level Order TraversalMediumA clear explanation of zigzag level order traversal using breadth-first search and alternating level direction.
104LeetCode 104: Maximum Depth of Binary TreeEasyA clear explanation of finding the maximum depth of a binary tree using recursive depth-first search.
105LeetCode 105: Construct Binary Tree from Preorder and Inorder TraversalMediumA clear explanation of rebuilding a binary tree from preorder and inorder traversals using recursion and an index map.
106LeetCode 106: Construct Binary Tree from Inorder and Postorder TraversalMediumA clear explanation of rebuilding a binary tree from inorder and postorder traversals using recursion and an index map.
107LeetCode 107: Binary Tree Level Order Traversal IIMediumA clear explanation of returning binary tree levels from bottom to top using breadth-first search.
108LeetCode 108: Convert Sorted Array to Binary Search TreeEasyA clear explanation of building a height-balanced binary search tree from a sorted array using divide and conquer.
109LeetCode 109: Convert Sorted List to Binary Search TreeMediumA clear explanation of converting a sorted linked list into a height-balanced binary search tree using slow and fast pointers.
110LeetCode 110: Balanced Binary TreeEasyA clear explanation of checking whether a binary tree is height-balanced using bottom-up depth-first search.
111LeetCode 111: Minimum Depth of Binary TreeEasyA clear explanation of finding the minimum depth of a binary tree using breadth-first search.
112LeetCode 112: Path SumEasyA clear explanation of checking whether a binary tree has a root-to-leaf path whose values add up to a target sum.
113LeetCode 113: Path Sum IIMediumA clear explanation of finding all root-to-leaf paths whose values add up to a target sum using depth-first search and backtracking.
114LeetCode 114: Flatten Binary Tree to Linked ListMediumA clear explanation of flattening a binary tree into a linked list in preorder traversal order using recursive depth-first search.
115LeetCode 115: Distinct SubsequencesHardA clear explanation of counting distinct subsequences using dynamic programming.
116LeetCode 116: Populating Next Right Pointers in Each NodeMediumA clear explanation of connecting next pointers in a perfect binary tree using constant extra space.
117LeetCode 117: Populating Next Right Pointers in Each Node IIMediumA clear explanation of connecting next pointers in any binary tree using constant extra space.
118LeetCode 118: Pascal’s TriangleEasyA clear explanation of generating Pascal’s Triangle row by row using dynamic programming.
119LeetCode 119: Pascal’s Triangle IIEasyA clear explanation of generating a single row of Pascal’s Triangle using in-place dynamic programming.
120LeetCode 120: TriangleMediumA clear explanation of finding the minimum path sum in a triangle using bottom-up dynamic programming.
121LeetCode 121: Best Time to Buy and Sell StockEasyA clear explanation of finding the maximum profit from one stock transaction using a single pass.
122LeetCode 122: Best Time to Buy and Sell Stock IIMediumA clear explanation of maximizing stock profit with unlimited transactions using a greedy single-pass method.
123LeetCode 123: Best Time to Buy and Sell Stock IIIHardA clear explanation of maximizing stock profit with at most two transactions using dynamic programming.
124LeetCode 124: Binary Tree Maximum Path SumHardA clear explanation of finding the maximum path sum in a binary tree using bottom-up depth-first search.
125LeetCode 125: Valid PalindromeEasyA clear explanation of checking whether a string is a palindrome after ignoring non-alphanumeric characters and case.
126LeetCode 126: Word Ladder IIHardFind all shortest word transformation sequences using BFS to build shortest-path parents, then backtracking to reconstruct every answer.
127LeetCode 127: Word LadderHardUse breadth-first search to find the shortest transformation sequence length between two words.
128LeetCode 128: Longest Consecutive SequenceMediumFind the longest run of consecutive integers in an unsorted array using a hash set and sequence-start detection.
129LeetCode 129: Sum Root to Leaf NumbersMediumCompute the sum of all numbers formed by root-to-leaf paths using depth-first search and decimal accumulation.
130LeetCode 130: Surrounded RegionsMediumCapture surrounded O regions by marking border-connected O cells first, then flipping the remaining O cells.
131LeetCode 131: Palindrome PartitioningMediumGenerate all ways to split a string so that every piece is a palindrome, using backtracking with palindrome precomputation.
132LeetCode 132: Palindrome Partitioning IIHardFind the minimum number of cuts needed to split a string into palindromic substrings using palindrome precomputation and dynamic programming.
133LeetCode 133: Clone GraphMediumCreate a deep copy of a connected undirected graph using DFS and a hash map from original nodes to cloned nodes.
134LeetCode 134: Gas StationMediumFind the unique starting gas station index using a greedy scan with total fuel balance and current tank balance.
135LeetCode 135: CandyHardCompute the minimum candies needed using two greedy passes, one from the left and one from the right.
136LeetCode 136: Single NumberEasyFind the only number that appears once using the XOR operator, while every other number appears exactly twice.
137LeetCode 137: Single Number IIMediumFind the number that appears once when every other number appears three times using bit counting or finite-state bit manipulation.
138LeetCode 138: Copy List with Random PointerMediumCreate a deep copy of a linked list with next and random pointers using hash maps or interleaved node cloning.
139LeetCode 139: Word BreakMediumDecide whether a string can be segmented into dictionary words using dynamic programming over prefixes.
140LeetCode 140: Word Break IIHardReturn all valid sentences formed by inserting spaces into a string so every word belongs to the dictionary, using DFS with memoization.
141LeetCode 141: Linked List CycleEasyDetect whether a linked list contains a cycle using Floyd’s tortoise and hare two-pointer algorithm.
142LeetCode 142: Linked List Cycle IIMediumFind the node where a linked list cycle begins using Floyd’s tortoise and hare algorithm with cycle entry mathematics.
143LeetCode 143: Reorder ListMediumReorder a singly linked list in-place by finding the middle, reversing the second half, and merging the two halves alternately.
144LeetCode 144: Binary Tree Preorder TraversalEasyReturn the preorder traversal of a binary tree using recursion or an explicit stack.
145LeetCode 145: Binary Tree Postorder TraversalEasyReturn the postorder traversal of a binary tree using recursion or an iterative stack-based approach.
146LeetCode 146: LRU CacheMediumDesign an LRU cache with O(1) get and put operations using a hash map and doubly linked list.
147LeetCode 147: Insertion Sort ListMediumSort a singly linked list using insertion sort by splicing each node into a growing sorted list.
148LeetCode 148: Sort ListMediumSort a singly linked list in ascending order using merge sort with fast and slow pointers.
149LeetCode 149: Max Points on a LineHardFind the maximum number of points lying on the same straight line using slope counting and normalization.
150LeetCode 150: Evaluate Reverse Polish NotationMediumEvaluate an arithmetic expression written in Reverse Polish Notation using a stack.
151LeetCode 151: Reverse Words in a StringMediumA clear explanation of reversing word order while removing extra spaces.
152LeetCode 152: Maximum Product SubarrayMediumA detailed explanation of tracking both maximum and minimum products while scanning the array.
153LeetCode 153: Find Minimum in Rotated Sorted ArrayMediumA clear explanation of finding the minimum element in a rotated sorted array using binary search.
154LeetCode 154: Find Minimum in Rotated Sorted Array IIHardA clear explanation of finding the minimum element in a rotated sorted array that may contain duplicates.
155LeetCode 155: Min StackMediumA clear explanation of designing a stack that can return the current minimum element in constant time.
156LeetCode 156: Binary Tree Upside DownMediumA clear explanation of flipping a binary tree upside down by rewiring pointers from the left spine.
157LeetCode 157: Read N Characters Given Read4EasyA clear explanation of implementing read using the given read4 API and copying only the needed characters.
158LeetCode 158: Read N Characters Given read4 II - Call Multiple TimesHardA clear explanation of implementing read with read4 when read may be called multiple times.
159LeetCode 159: Longest Substring with At Most Two Distinct CharactersMediumA clear explanation of finding the longest substring with at most two distinct characters using a sliding window.
160LeetCode 160: Intersection of Two Linked ListsEasyA clear explanation of finding the node where two singly linked lists intersect using two pointers.
161LeetCode 161: One Edit DistanceMediumA clear explanation of checking whether two strings are exactly one edit apart using a linear scan.
162LeetCode 162: Find Peak ElementMediumA clear explanation of finding any peak element using binary search on the slope of the array.
163LeetCode 163: Missing RangesEasyA clear explanation of finding all missing ranges inside an inclusive interval by scanning sorted unique numbers.
164LeetCode 164: Maximum GapMediumA clear explanation of finding the maximum adjacent gap in sorted order using buckets and the pigeonhole principle.
165LeetCode 165: Compare Version NumbersMediumA clear explanation of comparing version strings revision by revision while ignoring leading zeros.
166LeetCode 166: Fraction to Recurring DecimalMediumA clear explanation of converting a fraction into decimal form and detecting repeating fractional parts with a hash map.
167LeetCode 167: Two Sum II - Input Array Is SortedMediumA clear explanation of finding two numbers in a sorted array using two pointers and constant extra space.
168LeetCode 168: Excel Sheet Column TitleEasyA clear explanation of converting a positive integer into an Excel column title using bijective base 26.
169LeetCode 169: Majority ElementEasyA clear explanation of finding the element that appears more than half the time using Boyer-Moore voting.
170LeetCode 170: Two Sum III - Data Structure DesignEasyA clear explanation of designing a data structure that supports add and find operations for pair sums.
171LeetCode 171: Excel Sheet Column NumberEasyA clear explanation of converting an Excel column title into its numeric index using base 26 accumulation.
172LeetCode 172: Factorial Trailing ZeroesMediumA clear explanation of counting trailing zeroes in n! by counting factors of 5 instead of computing the factorial directly.
173LeetCode 173: Binary Search Tree IteratorMediumA clear explanation of designing an iterator over a BST using controlled inorder traversal with a stack.
174LeetCode 174: Dungeon GameHardA clear explanation of computing the minimum initial health needed to survive a dungeon using reverse dynamic programming.
175LeetCode 175: Combine Two TablesEasyA clear SQL guide for solving Combine Two Tables using LEFT JOIN.
176LeetCode 176: Second Highest SalaryMediumA clear SQL solution for finding the second highest distinct salary from the Employee table.
177LeetCode 177: Nth Highest SalaryMediumA clear SQL solution for finding the nth highest distinct salary from the Employee table.
178LeetCode 178: Rank ScoresMediumA clear SQL solution for ranking scores with dense ranking, where ties share the same rank and no rank numbers are skipped.
179LeetCode 179: Largest NumberMediumA clear explanation of arranging non-negative integers to form the largest possible concatenated number using a custom sort order.
180LeetCode 180: Consecutive NumbersMediumA clear SQL solution for finding numbers that appear at least three times consecutively in the Logs table.
181LeetCode 181: Employees Earning More Than Their ManagersEasyA clear SQL solution for finding employees whose salary is greater than their manager’s salary using a self join.
182LeetCode 182: Duplicate EmailsEasyA clear SQL solution for reporting email values that appear more than once in the Person table.
183LeetCode 183: Customers Who Never OrderEasyA clear SQL solution for finding customers who have no matching rows in the Orders table.
184LeetCode 184: Department Highest SalaryMediumA clear SQL solution for finding every employee who earns the highest salary in their department.
185LeetCode 185: Department Top Three SalariesHardA clear SQL solution for finding employees whose salaries are in the top three unique salary levels within their department.
186LeetCode 186: Reverse Words in a String IIMediumA clear explanation of reversing the order of words in a character array in-place using two reversals.
187LeetCode 187: Repeated DNA SequencesMediumA clear explanation of finding repeated 10-letter DNA substrings using a fixed-size sliding window and hash sets.
188LeetCode 188: Best Time to Buy and Sell Stock IVHardA clear explanation of maximizing stock trading profit with at most k transactions using dynamic programming.
189LeetCode 189: Rotate ArrayMediumA clear explanation of rotating an array to the right by k steps using in-place reversal.
190LeetCode 190: Reverse BitsEasyA clear explanation of reversing the bits of a 32-bit integer using bit manipulation.
191LeetCode 191: Number of 1 BitsEasyA clear explanation of counting set bits in an integer using bit manipulation and Brian Kernighan’s algorithm.
192LeetCode 192: Word FrequencyMediumA clear explanation of the Word Frequency shell problem using Unix text-processing tools.
193LeetCode 193: Valid Phone NumbersEasyA clear explanation of the Valid Phone Numbers shell problem using grep and regular expressions.
194LeetCode 194: Transpose FileMediumA clear explanation of the Transpose File shell problem using awk to transform rows into columns.
195LeetCode 195: Tenth LineEasyA clear explanation of the Tenth Line shell problem using awk, sed, head, and tail.
196LeetCode 196: Delete Duplicate EmailsEasyA clear explanation of the Delete Duplicate Emails SQL problem using DELETE with a self join.
197LeetCode 197: Rising TemperatureEasyA clear explanation of the Rising Temperature SQL problem using a self join and date comparison.
198LeetCode 198: House RobberMediumA clear explanation of maximizing robbery profit without robbing adjacent houses using dynamic programming.
199LeetCode 199: Binary Tree Right Side ViewMediumA clear explanation of returning the visible nodes from the right side of a binary tree using level-order traversal.
LeetCode 100: Same TreeA detailed guide to solving Same Tree with recursive DFS and structural comparison.
6 min
LeetCode 101: Symmetric TreeA clear explanation of checking whether a binary tree is symmetric using mirror recursion.
6 min
LeetCode 102: Binary Tree Level Order TraversalA clear explanation of binary tree level order traversal using breadth-first search and a queue.
5 min
LeetCode 103: Binary Tree Zigzag Level Order TraversalA clear explanation of zigzag level order traversal using breadth-first search and alternating level direction.
6 min
LeetCode 104: Maximum Depth of Binary TreeA clear explanation of finding the maximum depth of a binary tree using recursive depth-first search.
4 min
LeetCode 105: Construct Binary Tree from Preorder and Inorder TraversalA clear explanation of rebuilding a binary tree from preorder and inorder traversals using recursion and an index map.
7 min
LeetCode 106: Construct Binary Tree from Inorder and Postorder TraversalA clear explanation of rebuilding a binary tree from inorder and postorder traversals using recursion and an index map.
7 min
LeetCode 107: Binary Tree Level Order Traversal IIA clear explanation of returning binary tree levels from bottom to top using breadth-first search.
5 min
LeetCode 108: Convert Sorted Array to Binary Search TreeA clear explanation of building a height-balanced binary search tree from a sorted array using divide and conquer.
6 min
LeetCode 109: Convert Sorted List to Binary Search TreeA clear explanation of converting a sorted linked list into a height-balanced binary search tree using slow and fast pointers.
6 min
LeetCode 110: Balanced Binary TreeA clear explanation of checking whether a binary tree is height-balanced using bottom-up depth-first search.
6 min
LeetCode 111: Minimum Depth of Binary TreeA clear explanation of finding the minimum depth of a binary tree using breadth-first search.
5 min
LeetCode 112: Path SumA clear explanation of checking whether a binary tree has a root-to-leaf path whose values add up to a target sum.
6 min
LeetCode 113: Path Sum IIA clear explanation of finding all root-to-leaf paths whose values add up to a target sum using depth-first search and backtracking.
6 min
LeetCode 114: Flatten Binary Tree to Linked ListA clear explanation of flattening a binary tree into a linked list in preorder traversal order using recursive depth-first search.
5 min
LeetCode 115: Distinct SubsequencesA clear explanation of counting distinct subsequences using dynamic programming.
5 min
LeetCode 116: Populating Next Right Pointers in Each NodeA clear explanation of connecting next pointers in a perfect binary tree using constant extra space.
6 min
LeetCode 117: Populating Next Right Pointers in Each Node IIA clear explanation of connecting next pointers in any binary tree using constant extra space.
6 min
LeetCode 118: Pascal's TriangleA clear explanation of generating Pascal's Triangle row by row using dynamic programming.
4 min
LeetCode 119: Pascal's Triangle IIA clear explanation of generating a single row of Pascal's Triangle using in-place dynamic programming.
4 min
LeetCode 120: TriangleA clear explanation of finding the minimum path sum in a triangle using bottom-up dynamic programming.
4 min
LeetCode 121: Best Time to Buy and Sell StockA clear explanation of finding the maximum profit from one stock transaction using a single pass.
4 min
LeetCode 122: Best Time to Buy and Sell Stock IIA clear explanation of maximizing stock profit with unlimited transactions using a greedy single-pass method.
4 min
LeetCode 123: Best Time to Buy and Sell Stock IIIA clear explanation of maximizing stock profit with at most two transactions using dynamic programming.
5 min
LeetCode 124: Binary Tree Maximum Path SumA clear explanation of finding the maximum path sum in a binary tree using bottom-up depth-first search.
6 min
LeetCode 125: Valid PalindromeA clear explanation of checking whether a string is a palindrome after ignoring non-alphanumeric characters and case.
4 min
LeetCode 126: Word Ladder IIFind all shortest word transformation sequences using BFS to build shortest-path parents, then backtracking to reconstruct every answer.
8 min
LeetCode 127: Word LadderUse breadth-first search to find the shortest transformation sequence length between two words.
5 min
LeetCode 128: Longest Consecutive SequenceFind the longest run of consecutive integers in an unsorted array using a hash set and sequence-start detection.
5 min
LeetCode 129: Sum Root to Leaf NumbersCompute the sum of all numbers formed by root-to-leaf paths using depth-first search and decimal accumulation.
5 min
LeetCode 130: Surrounded RegionsCapture surrounded O regions by marking border-connected O cells first, then flipping the remaining O cells.
7 min
LeetCode 131: Palindrome PartitioningGenerate all ways to split a string so that every piece is a palindrome, using backtracking with palindrome precomputation.
5 min
LeetCode 132: Palindrome Partitioning IIFind the minimum number of cuts needed to split a string into palindromic substrings using palindrome precomputation and dynamic programming.
6 min
LeetCode 133: Clone GraphCreate a deep copy of a connected undirected graph using DFS and a hash map from original nodes to cloned nodes.
6 min
LeetCode 134: Gas StationFind the unique starting gas station index using a greedy scan with total fuel balance and current tank balance.
6 min
LeetCode 135: CandyCompute the minimum candies needed using two greedy passes, one from the left and one from the right.
6 min
LeetCode 136: Single NumberFind the only number that appears once using the XOR operator, while every other number appears exactly twice.
3 min
LeetCode 137: Single Number IIFind the number that appears once when every other number appears three times using bit counting or finite-state bit manipulation.
5 min
LeetCode 138: Copy List with Random PointerCreate a deep copy of a linked list with next and random pointers using hash maps or interleaved node cloning.
5 min
LeetCode 139: Word BreakDecide whether a string can be segmented into dictionary words using dynamic programming over prefixes.
5 min
LeetCode 140: Word Break IIReturn all valid sentences formed by inserting spaces into a string so every word belongs to the dictionary, using DFS with memoization.
7 min
LeetCode 141: Linked List CycleDetect whether a linked list contains a cycle using Floyd’s tortoise and hare two-pointer algorithm.
5 min
LeetCode 142: Linked List Cycle IIFind the node where a linked list cycle begins using Floyd’s tortoise and hare algorithm with cycle entry mathematics.
6 min
LeetCode 143: Reorder ListReorder a singly linked list in-place by finding the middle, reversing the second half, and merging the two halves alternately.
6 min
LeetCode 144: Binary Tree Preorder TraversalReturn the preorder traversal of a binary tree using recursion or an explicit stack.
4 min
LeetCode 145: Binary Tree Postorder TraversalReturn the postorder traversal of a binary tree using recursion or an iterative stack-based approach.
5 min
LeetCode 146: LRU CacheDesign an LRU cache with O(1) get and put operations using a hash map and doubly linked list.
5 min
LeetCode 147: Insertion Sort ListSort a singly linked list using insertion sort by splicing each node into a growing sorted list.
5 min
LeetCode 148: Sort ListSort a singly linked list in ascending order using merge sort with fast and slow pointers.
7 min
LeetCode 149: Max Points on a LineFind the maximum number of points lying on the same straight line using slope counting and normalization.
5 min
LeetCode 150: Evaluate Reverse Polish NotationEvaluate an arithmetic expression written in Reverse Polish Notation using a stack.
5 min
LeetCode 151: Reverse Words in a StringA clear explanation of reversing word order while removing extra spaces.
4 min
LeetCode 152: Maximum Product SubarrayA detailed explanation of tracking both maximum and minimum products while scanning the array.
5 min
LeetCode 153: Find Minimum in Rotated Sorted ArrayA clear explanation of finding the minimum element in a rotated sorted array using binary search.
5 min
LeetCode 154: Find Minimum in Rotated Sorted Array IIA clear explanation of finding the minimum element in a rotated sorted array that may contain duplicates.
6 min
LeetCode 155: Min StackA clear explanation of designing a stack that can return the current minimum element in constant time.
5 min
LeetCode 156: Binary Tree Upside DownA clear explanation of flipping a binary tree upside down by rewiring pointers from the left spine.
6 min
LeetCode 157: Read N Characters Given Read4A clear explanation of implementing read using the given read4 API and copying only the needed characters.
6 min
LeetCode 158: Read N Characters Given read4 II - Call Multiple TimesA clear explanation of implementing read with read4 when read may be called multiple times.
6 min
LeetCode 159: Longest Substring with At Most Two Distinct CharactersA clear explanation of finding the longest substring with at most two distinct characters using a sliding window.
5 min
LeetCode 160: Intersection of Two Linked ListsA clear explanation of finding the node where two singly linked lists intersect using two pointers.
6 min
LeetCode 161: One Edit DistanceA clear explanation of checking whether two strings are exactly one edit apart using a linear scan.
7 min
LeetCode 162: Find Peak ElementA clear explanation of finding any peak element using binary search on the slope of the array.
6 min
LeetCode 163: Missing RangesA clear explanation of finding all missing ranges inside an inclusive interval by scanning sorted unique numbers.
7 min
LeetCode 164: Maximum GapA clear explanation of finding the maximum adjacent gap in sorted order using buckets and the pigeonhole principle.
7 min
LeetCode 165: Compare Version NumbersA clear explanation of comparing version strings revision by revision while ignoring leading zeros.
5 min
LeetCode 166: Fraction to Recurring DecimalA clear explanation of converting a fraction into decimal form and detecting repeating fractional parts with a hash map.
6 min
LeetCode 167: Two Sum II - Input Array Is SortedA clear explanation of finding two numbers in a sorted array using two pointers and constant extra space.
5 min
LeetCode 168: Excel Sheet Column TitleA clear explanation of converting a positive integer into an Excel column title using bijective base 26.
5 min
LeetCode 169: Majority ElementA clear explanation of finding the element that appears more than half the time using Boyer-Moore voting.
5 min
LeetCode 170: Two Sum III - Data Structure DesignA clear explanation of designing a data structure that supports add and find operations for pair sums.
5 min
LeetCode 171: Excel Sheet Column NumberA clear explanation of converting an Excel column title into its numeric index using base 26 accumulation.
4 min
LeetCode 172: Factorial Trailing ZeroesA clear explanation of counting trailing zeroes in n! by counting factors of 5 instead of computing the factorial directly.
3 min
LeetCode 173: Binary Search Tree IteratorA clear explanation of designing an iterator over a BST using controlled inorder traversal with a stack.
6 min
LeetCode 174: Dungeon GameA clear explanation of computing the minimum initial health needed to survive a dungeon using reverse dynamic programming.
6 min
LeetCode 175: Combine Two TablesA clear SQL guide for solving Combine Two Tables using LEFT JOIN.
4 min
LeetCode 176: Second Highest SalaryA clear SQL solution for finding the second highest distinct salary from the Employee table.
4 min
LeetCode 177: Nth Highest SalaryA clear SQL solution for finding the nth highest distinct salary from the Employee table.
4 min
LeetCode 178: Rank ScoresA clear SQL solution for ranking scores with dense ranking, where ties share the same rank and no rank numbers are skipped.
5 min
LeetCode 179: Largest NumberA clear explanation of arranging non-negative integers to form the largest possible concatenated number using a custom sort order.
4 min
LeetCode 180: Consecutive NumbersA clear SQL solution for finding numbers that appear at least three times consecutively in the Logs table.
5 min
LeetCode 181: Employees Earning More Than Their ManagersA clear SQL solution for finding employees whose salary is greater than their manager's salary using a self join.
4 min
LeetCode 182: Duplicate EmailsA clear SQL solution for reporting email values that appear more than once in the Person table.
4 min
LeetCode 183: Customers Who Never OrderA clear SQL solution for finding customers who have no matching rows in the Orders table.
5 min
LeetCode 184: Department Highest SalaryA clear SQL solution for finding every employee who earns the highest salary in their department.
6 min
LeetCode 185: Department Top Three SalariesA clear SQL solution for finding employees whose salaries are in the top three unique salary levels within their department.
7 min
LeetCode 186: Reverse Words in a String IIA clear explanation of reversing the order of words in a character array in-place using two reversals.
4 min
LeetCode 187: Repeated DNA SequencesA clear explanation of finding repeated 10-letter DNA substrings using a fixed-size sliding window and hash sets.
4 min
LeetCode 188: Best Time to Buy and Sell Stock IVA clear explanation of maximizing stock trading profit with at most k transactions using dynamic programming.
5 min
LeetCode 189: Rotate ArrayA clear explanation of rotating an array to the right by k steps using in-place reversal.
5 min
LeetCode 190: Reverse BitsA clear explanation of reversing the bits of a 32-bit integer using bit manipulation.
4 min
LeetCode 191: Number of 1 BitsA clear explanation of counting set bits in an integer using bit manipulation and Brian Kernighan's algorithm.
4 min
LeetCode 192: Word FrequencyA clear explanation of the Word Frequency shell problem using Unix text-processing tools.
4 min
LeetCode 193: Valid Phone NumbersA clear explanation of the Valid Phone Numbers shell problem using grep and regular expressions.
4 min
LeetCode 194: Transpose FileA clear explanation of the Transpose File shell problem using awk to transform rows into columns.
4 min
LeetCode 195: Tenth LineA clear explanation of the Tenth Line shell problem using awk, sed, head, and tail.
3 min
LeetCode 196: Delete Duplicate EmailsA clear explanation of the Delete Duplicate Emails SQL problem using DELETE with a self join.
3 min
LeetCode 197: Rising TemperatureA clear explanation of the Rising Temperature SQL problem using a self join and date comparison.
3 min
LeetCode 198: House RobberA clear explanation of maximizing robbery profit without robbing adjacent houses using dynamic programming.
4 min
LeetCode 199: Binary Tree Right Side ViewA clear explanation of returning the visible nodes from the right side of a binary tree using level-order traversal.
5 min