LeetCode
151 posts in this series.
BASIC for LeetCode: the most reliable way to think through coding interviews
LeetCode is often treated like a memory contest.
LeetCode Card 206 — Arrays and Hashing / Breakdown
This pattern usually appears when the prompt involves lookup, duplicate detection, counting, grouping, or direct indexbased traversal. Problems like Two Sum, Contains Duplicate,…
LeetCode Card 207 — Arrays and Hashing / Assess
This pattern usually appears when the prompt involves lookup, duplicate detection, counting, grouping, or direct indexbased traversal. Problems like Two Sum, Contains Duplicate,…
LeetCode Card 208 — Arrays and Hashing / Structure
This pattern usually appears when the prompt involves lookup, duplicate detection, counting, grouping, or direct indexbased traversal. Problems like Two Sum, Contains Duplicate,…
LeetCode Card 209 — Arrays and Hashing / Implement
This pattern usually appears when the prompt involves lookup, duplicate detection, counting, grouping, or direct indexbased traversal. Problems like Two Sum, Contains Duplicate,…
LeetCode Card 210 — Arrays and Hashing / Check
This pattern usually appears when the prompt involves lookup, duplicate detection, counting, grouping, or direct indexbased traversal. Problems like Two Sum, Contains Duplicate,…
LeetCode Card 211 — Strings / Breakdown
This pattern usually appears when the prompt involves normalization, parsing, frequency, slicing, or characterwise conditions. Typical prompts include Valid Palindrome, Longest…
LeetCode Card 212 — Strings / Assess
This pattern usually appears when the prompt involves normalization, parsing, frequency, slicing, or characterwise conditions. Typical prompts include Valid Palindrome, Longest…
LeetCode Card 213 — Strings / Structure
This pattern usually appears when the prompt involves normalization, parsing, frequency, slicing, or characterwise conditions. Typical prompts include Valid Palindrome, Longest…
LeetCode Card 214 — Strings / Implement
This pattern usually appears when the prompt involves normalization, parsing, frequency, slicing, or characterwise conditions. Typical prompts include Valid Palindrome, Longest…
LeetCode Card 215 — Strings / Check
This pattern usually appears when the prompt involves normalization, parsing, frequency, slicing, or characterwise conditions. Typical prompts include Valid Palindrome, Longest…
LeetCode Card 216 — Two Pointers / Breakdown
This pattern usually appears when the prompt involves sorted input, pair discovery, compaction, palindromic checks, or inplace partitioning. Think Two Sum II, 3Sum substeps,…
LeetCode Card 217 — Two Pointers / Assess
This pattern usually appears when the prompt involves sorted input, pair discovery, compaction, palindromic checks, or inplace partitioning. Think Two Sum II, 3Sum substeps,…
LeetCode Card 218 — Two Pointers / Structure
This pattern usually appears when the prompt involves sorted input, pair discovery, compaction, palindromic checks, or inplace partitioning. Think Two Sum II, 3Sum substeps,…
LeetCode Card 219 — Two Pointers / Implement
This pattern usually appears when the prompt involves sorted input, pair discovery, compaction, palindromic checks, or inplace partitioning. Think Two Sum II, 3Sum substeps,…
LeetCode Card 220 — Two Pointers / Check
This pattern usually appears when the prompt involves sorted input, pair discovery, compaction, palindromic checks, or inplace partitioning. Think Two Sum II, 3Sum substeps,…
LeetCode Card 221 — Sliding Window / Breakdown
This pattern usually appears when the prompt involves contiguous substring or subarray optimization with a condition that changes as the window moves. Classic examples include…
LeetCode Card 222 — Sliding Window / Assess
This pattern usually appears when the prompt involves contiguous substring or subarray optimization with a condition that changes as the window moves. Classic examples include…
LeetCode Card 223 — Sliding Window / Structure
This pattern usually appears when the prompt involves contiguous substring or subarray optimization with a condition that changes as the window moves. Classic examples include…
LeetCode Card 224 — Sliding Window / Implement
This pattern usually appears when the prompt involves contiguous substring or subarray optimization with a condition that changes as the window moves. Classic examples include…
LeetCode Card 225 — Sliding Window / Check
This pattern usually appears when the prompt involves contiguous substring or subarray optimization with a condition that changes as the window moves. Classic examples include…
LeetCode Card 226 — Prefix Sums / Breakdown
This pattern usually appears when the prompt involves range sums, subarray totals, balance counting, or repeated aggregate queries. Subarray Sum Equals K, Range Sum Query, and…
LeetCode Card 227 — Prefix Sums / Assess
This pattern usually appears when the prompt involves range sums, subarray totals, balance counting, or repeated aggregate queries. Subarray Sum Equals K, Range Sum Query, and…
LeetCode Card 228 — Prefix Sums / Structure
This pattern usually appears when the prompt involves range sums, subarray totals, balance counting, or repeated aggregate queries. Subarray Sum Equals K, Range Sum Query, and…
LeetCode Card 229 — Prefix Sums / Implement
This pattern usually appears when the prompt involves range sums, subarray totals, balance counting, or repeated aggregate queries. Subarray Sum Equals K, Range Sum Query, and…
LeetCode Card 230 — Prefix Sums / Check
This pattern usually appears when the prompt involves range sums, subarray totals, balance counting, or repeated aggregate queries. Subarray Sum Equals K, Range Sum Query, and…
LeetCode Card 231 — Binary Search / Breakdown
This pattern usually appears when the prompt involves sorted structure or hidden monotonic predicate. Search Insert Position, Search in Rotated Sorted Array, first/last…
LeetCode Card 232 — Binary Search / Assess
This pattern usually appears when the prompt involves sorted structure or hidden monotonic predicate. Search Insert Position, Search in Rotated Sorted Array, first/last…
LeetCode Card 233 — Binary Search / Structure
This pattern usually appears when the prompt involves sorted structure or hidden monotonic predicate. Search Insert Position, Search in Rotated Sorted Array, first/last…
LeetCode Card 234 — Binary Search / Implement
This pattern usually appears when the prompt involves sorted structure or hidden monotonic predicate. Search Insert Position, Search in Rotated Sorted Array, first/last…
LeetCode Card 235 — Binary Search / Check
This pattern usually appears when the prompt involves sorted structure or hidden monotonic predicate. Search Insert Position, Search in Rotated Sorted Array, first/last…
LeetCode Card 236 — Stack / Breakdown
This pattern usually appears when the prompt involves nested structure, undostyle behavior, monotonic maintenance, or immediate access to the most recent unresolved item. Valid…
LeetCode Card 237 — Stack / Assess
This pattern usually appears when the prompt involves nested structure, undostyle behavior, monotonic maintenance, or immediate access to the most recent unresolved item. Valid…
LeetCode Card 238 — Stack / Structure
This pattern usually appears when the prompt involves nested structure, undostyle behavior, monotonic maintenance, or immediate access to the most recent unresolved item. Valid…
LeetCode Card 239 — Stack / Implement
This pattern usually appears when the prompt involves nested structure, undostyle behavior, monotonic maintenance, or immediate access to the most recent unresolved item. Valid…
LeetCode Card 240 — Stack / Check
This pattern usually appears when the prompt involves nested structure, undostyle behavior, monotonic maintenance, or immediate access to the most recent unresolved item. Valid…
LeetCode Card 241 — Queue and Deque / Breakdown
This pattern usually appears when the prompt involves levelorder processing, FIFO workflows, or windows where both ends matter. Binary Tree Level Order Traversal, movingaverage…
LeetCode Card 242 — Queue and Deque / Assess
This pattern usually appears when the prompt involves levelorder processing, FIFO workflows, or windows where both ends matter. Binary Tree Level Order Traversal, movingaverage…
LeetCode Card 243 — Queue and Deque / Structure
This pattern usually appears when the prompt involves levelorder processing, FIFO workflows, or windows where both ends matter. Binary Tree Level Order Traversal, movingaverage…
LeetCode Card 244 — Queue and Deque / Implement
This pattern usually appears when the prompt involves levelorder processing, FIFO workflows, or windows where both ends matter. Binary Tree Level Order Traversal, movingaverage…
LeetCode Card 245 — Queue and Deque / Check
This pattern usually appears when the prompt involves levelorder processing, FIFO workflows, or windows where both ends matter. Binary Tree Level Order Traversal, movingaverage…
LeetCode Card 246 — Linked List / Breakdown
This pattern usually appears when the prompt involves pointer rewiring, nodebynode traversal, or inplace reordering without random access. Reverse Linked List, Merge Two Lists,…
LeetCode Card 247 — Linked List / Assess
This pattern usually appears when the prompt involves pointer rewiring, nodebynode traversal, or inplace reordering without random access. Reverse Linked List, Merge Two Lists,…
LeetCode Card 248 — Linked List / Structure
This pattern usually appears when the prompt involves pointer rewiring, nodebynode traversal, or inplace reordering without random access. Reverse Linked List, Merge Two Lists,…
LeetCode Card 249 — Linked List / Implement
This pattern usually appears when the prompt involves pointer rewiring, nodebynode traversal, or inplace reordering without random access. Reverse Linked List, Merge Two Lists,…
LeetCode Card 250 — Linked List / Check
This pattern usually appears when the prompt involves pointer rewiring, nodebynode traversal, or inplace reordering without random access. Reverse Linked List, Merge Two Lists,…
LeetCode Card 251 — Fast and Slow Pointers / Breakdown
This pattern usually appears when the prompt involves cycle detection, midpoint discovery, or relativespeed traversal. Linked List Cycle, Palindrome Linked List, and finding list…
LeetCode Card 252 — Fast and Slow Pointers / Assess
This pattern usually appears when the prompt involves cycle detection, midpoint discovery, or relativespeed traversal. Linked List Cycle, Palindrome Linked List, and finding list…
LeetCode Card 253 — Fast and Slow Pointers / Structure
This pattern usually appears when the prompt involves cycle detection, midpoint discovery, or relativespeed traversal. Linked List Cycle, Palindrome Linked List, and finding list…
LeetCode Card 254 — Fast and Slow Pointers / Implement
This pattern usually appears when the prompt involves cycle detection, midpoint discovery, or relativespeed traversal. Linked List Cycle, Palindrome Linked List, and finding list…
LeetCode Card 255 — Fast and Slow Pointers / Check
This pattern usually appears when the prompt involves cycle detection, midpoint discovery, or relativespeed traversal. Linked List Cycle, Palindrome Linked List, and finding list…
LeetCode Card 256 — Tree DFS / Breakdown
This pattern usually appears when the prompt involves recursive subtree questions about depth, identity, path sums, construction, or transformation. Invert Binary Tree, Maximum…
LeetCode Card 257 — Tree DFS / Assess
This pattern usually appears when the prompt involves recursive subtree questions about depth, identity, path sums, construction, or transformation. Invert Binary Tree, Maximum…
LeetCode Card 258 — Tree DFS / Structure
This pattern usually appears when the prompt involves recursive subtree questions about depth, identity, path sums, construction, or transformation. Invert Binary Tree, Maximum…
LeetCode Card 259 — Tree DFS / Implement
This pattern usually appears when the prompt involves recursive subtree questions about depth, identity, path sums, construction, or transformation. Invert Binary Tree, Maximum…
LeetCode Card 260 — Tree DFS / Check
This pattern usually appears when the prompt involves recursive subtree questions about depth, identity, path sums, construction, or transformation. Invert Binary Tree, Maximum…
LeetCode Card 261 — Tree BFS / Breakdown
This pattern usually appears when the prompt involves levelbylevel grouping, shortest unweighted path from a root, or nearestlayer reasoning. Binary Tree Level Order Traversal,…
LeetCode Card 262 — Tree BFS / Assess
This pattern usually appears when the prompt involves levelbylevel grouping, shortest unweighted path from a root, or nearestlayer reasoning. Binary Tree Level Order Traversal,…
LeetCode Card 263 — Tree BFS / Structure
This pattern usually appears when the prompt involves levelbylevel grouping, shortest unweighted path from a root, or nearestlayer reasoning. Binary Tree Level Order Traversal,…
LeetCode Card 264 — Tree BFS / Implement
This pattern usually appears when the prompt involves levelbylevel grouping, shortest unweighted path from a root, or nearestlayer reasoning. Binary Tree Level Order Traversal,…
LeetCode Card 265 — Tree BFS / Check
This pattern usually appears when the prompt involves levelbylevel grouping, shortest unweighted path from a root, or nearestlayer reasoning. Binary Tree Level Order Traversal,…
LeetCode Card 266 — Binary Search Trees / Breakdown
This pattern usually appears when the prompt involves ordered tree properties, rank queries, or pruning based on node value. Validate BST, Kth Smallest Element in a BST, Lowest…
LeetCode Card 267 — Binary Search Trees / Assess
This pattern usually appears when the prompt involves ordered tree properties, rank queries, or pruning based on node value. Validate BST, Kth Smallest Element in a BST, Lowest…
LeetCode Card 268 — Binary Search Trees / Structure
This pattern usually appears when the prompt involves ordered tree properties, rank queries, or pruning based on node value. Validate BST, Kth Smallest Element in a BST, Lowest…
LeetCode Card 269 — Binary Search Trees / Implement
This pattern usually appears when the prompt involves ordered tree properties, rank queries, or pruning based on node value. Validate BST, Kth Smallest Element in a BST, Lowest…
LeetCode Card 270 — Binary Search Trees / Check
This pattern usually appears when the prompt involves ordered tree properties, rank queries, or pruning based on node value. Validate BST, Kth Smallest Element in a BST, Lowest…
LeetCode Card 271 — Heaps and Priority Queues / Breakdown
This pattern usually appears when the prompt involves repeated access to current min/max or topk items under ongoing updates. Kth Largest Element, Top K Frequent, Merge K Sorted…
LeetCode Card 272 — Heaps and Priority Queues / Assess
This pattern usually appears when the prompt involves repeated access to current min/max or topk items under ongoing updates. Kth Largest Element, Top K Frequent, Merge K Sorted…
LeetCode Card 273 — Heaps and Priority Queues / Structure
This pattern usually appears when the prompt involves repeated access to current min/max or topk items under ongoing updates. Kth Largest Element, Top K Frequent, Merge K Sorted…
LeetCode Card 274 — Heaps and Priority Queues / Implement
This pattern usually appears when the prompt involves repeated access to current min/max or topk items under ongoing updates. Kth Largest Element, Top K Frequent, Merge K Sorted…
LeetCode Card 275 — Heaps and Priority Queues / Check
This pattern usually appears when the prompt involves repeated access to current min/max or topk items under ongoing updates. Kth Largest Element, Top K Frequent, Merge K Sorted…
LeetCode Card 276 — Intervals / Breakdown
This pattern usually appears when the prompt involves overlap, merging, scheduling, or span comparison across ranges. Merge Intervals, Insert Interval, Meeting Rooms, and…
LeetCode Card 277 — Intervals / Assess
This pattern usually appears when the prompt involves overlap, merging, scheduling, or span comparison across ranges. Merge Intervals, Insert Interval, Meeting Rooms, and…
LeetCode Card 278 — Intervals / Structure
This pattern usually appears when the prompt involves overlap, merging, scheduling, or span comparison across ranges. Merge Intervals, Insert Interval, Meeting Rooms, and…
LeetCode Card 279 — Intervals / Implement
This pattern usually appears when the prompt involves overlap, merging, scheduling, or span comparison across ranges. Merge Intervals, Insert Interval, Meeting Rooms, and…
LeetCode Card 280 — Intervals / Check
This pattern usually appears when the prompt involves overlap, merging, scheduling, or span comparison across ranges. Merge Intervals, Insert Interval, Meeting Rooms, and…
LeetCode Card 281 — Greedy / Breakdown
This pattern usually appears when the prompt involves localchoice problems where a proof or intuition shows that the local move supports the global goal. Jump Game, Gas Station,…
LeetCode Card 282 — Greedy / Assess
This pattern usually appears when the prompt involves localchoice problems where a proof or intuition shows that the local move supports the global goal. Jump Game, Gas Station,…
LeetCode Card 283 — Greedy / Structure
This pattern usually appears when the prompt involves localchoice problems where a proof or intuition shows that the local move supports the global goal. Jump Game, Gas Station,…
LeetCode Card 284 — Greedy / Implement
This pattern usually appears when the prompt involves localchoice problems where a proof or intuition shows that the local move supports the global goal. Jump Game, Gas Station,…
LeetCode Card 285 — Greedy / Check
This pattern usually appears when the prompt involves localchoice problems where a proof or intuition shows that the local move supports the global goal. Jump Game, Gas Station,…
LeetCode Card 286 — Graph DFS / Breakdown
This pattern usually appears when the prompt involves connected components, path existence, cycle detection, or exhaustive traversal. Number of Islands, Clone Graph, course…
LeetCode Card 287 — Graph DFS / Assess
This pattern usually appears when the prompt involves connected components, path existence, cycle detection, or exhaustive traversal. Number of Islands, Clone Graph, course…
LeetCode Card 288 — Graph DFS / Structure
This pattern usually appears when the prompt involves connected components, path existence, cycle detection, or exhaustive traversal. Number of Islands, Clone Graph, course…
LeetCode Card 289 — Graph DFS / Implement
This pattern usually appears when the prompt involves connected components, path existence, cycle detection, or exhaustive traversal. Number of Islands, Clone Graph, course…
LeetCode Card 290 — Graph DFS / Check
This pattern usually appears when the prompt involves connected components, path existence, cycle detection, or exhaustive traversal. Number of Islands, Clone Graph, course…
LeetCode Card 291 — Graph BFS / Breakdown
This pattern usually appears when the prompt involves shortest path in an unweighted graph, nearest transformation, or wavefront exploration. Rotting Oranges, Word Ladder, minimum…
LeetCode Card 292 — Graph BFS / Assess
This pattern usually appears when the prompt involves shortest path in an unweighted graph, nearest transformation, or wavefront exploration. Rotting Oranges, Word Ladder, minimum…
LeetCode Card 293 — Graph BFS / Structure
This pattern usually appears when the prompt involves shortest path in an unweighted graph, nearest transformation, or wavefront exploration. Rotting Oranges, Word Ladder, minimum…
LeetCode Card 294 — Graph BFS / Implement
This pattern usually appears when the prompt involves shortest path in an unweighted graph, nearest transformation, or wavefront exploration. Rotting Oranges, Word Ladder, minimum…
LeetCode Card 295 — Graph BFS / Check
This pattern usually appears when the prompt involves shortest path in an unweighted graph, nearest transformation, or wavefront exploration. Rotting Oranges, Word Ladder, minimum…
LeetCode Card 296 — Union-Find / Breakdown
This pattern usually appears when the prompt involves dynamic connectivity, component counting, or equivalence merging. Accounts Merge, Number of Connected Components, and…
LeetCode Card 297 — Union-Find / Assess
This pattern usually appears when the prompt involves dynamic connectivity, component counting, or equivalence merging. Accounts Merge, Number of Connected Components, and…
LeetCode Card 298 — Union-Find / Structure
This pattern usually appears when the prompt involves dynamic connectivity, component counting, or equivalence merging. Accounts Merge, Number of Connected Components, and…
LeetCode Card 299 — Union-Find / Implement
This pattern usually appears when the prompt involves dynamic connectivity, component counting, or equivalence merging. Accounts Merge, Number of Connected Components, and…
LeetCode Card 300 — Union-Find / Check
This pattern usually appears when the prompt involves dynamic connectivity, component counting, or equivalence merging. Accounts Merge, Number of Connected Components, and…
LeetCode Card 301 — Topological Sort / Breakdown
This pattern usually appears when the prompt involves ordering with prerequisites in a DAG. Course Schedule, build order, dependency resolution, and task execution pipelines point…
LeetCode Card 302 — Topological Sort / Assess
This pattern usually appears when the prompt involves ordering with prerequisites in a DAG. Course Schedule, build order, dependency resolution, and task execution pipelines point…
LeetCode Card 303 — Topological Sort / Structure
This pattern usually appears when the prompt involves ordering with prerequisites in a DAG. Course Schedule, build order, dependency resolution, and task execution pipelines point…
LeetCode Card 304 — Topological Sort / Implement
This pattern usually appears when the prompt involves ordering with prerequisites in a DAG. Course Schedule, build order, dependency resolution, and task execution pipelines point…
LeetCode Card 305 — Topological Sort / Check
This pattern usually appears when the prompt involves ordering with prerequisites in a DAG. Course Schedule, build order, dependency resolution, and task execution pipelines point…
LeetCode Card 306 — Backtracking / Breakdown
This pattern usually appears when the prompt involves enumeration over choices with constraint pruning. Subsets, Combination Sum, Permutations, NQueens, and wordsearch style…
LeetCode Card 307 — Backtracking / Assess
This pattern usually appears when the prompt involves enumeration over choices with constraint pruning. Subsets, Combination Sum, Permutations, NQueens, and wordsearch style…
LeetCode Card 308 — Backtracking / Structure
This pattern usually appears when the prompt involves enumeration over choices with constraint pruning. Subsets, Combination Sum, Permutations, NQueens, and wordsearch style…
LeetCode Card 309 — Backtracking / Implement
This pattern usually appears when the prompt involves enumeration over choices with constraint pruning. Subsets, Combination Sum, Permutations, NQueens, and wordsearch style…
LeetCode Card 310 — Backtracking / Check
This pattern usually appears when the prompt involves enumeration over choices with constraint pruning. Subsets, Combination Sum, Permutations, NQueens, and wordsearch style…
LeetCode Card 311 — Trie / Breakdown
This pattern usually appears when the prompt involves prefix queries, incremental string matching, or dictionary search across characters. Implement Trie, Word Search II,…
LeetCode Card 312 — Trie / Assess
This pattern usually appears when the prompt involves prefix queries, incremental string matching, or dictionary search across characters. Implement Trie, Word Search II,…
LeetCode Card 313 — Trie / Structure
This pattern usually appears when the prompt involves prefix queries, incremental string matching, or dictionary search across characters. Implement Trie, Word Search II,…
LeetCode Card 314 — Trie / Implement
This pattern usually appears when the prompt involves prefix queries, incremental string matching, or dictionary search across characters. Implement Trie, Word Search II,…
LeetCode Card 315 — Trie / Check
This pattern usually appears when the prompt involves prefix queries, incremental string matching, or dictionary search across characters. Implement Trie, Word Search II,…
LeetCode Card 316 — 1D Dynamic Programming / Breakdown
This pattern usually appears when the prompt involves best value or count depends on a previous line of states. Climbing Stairs, House Robber, Decode Ways, and coinchange style…
LeetCode Card 317 — 1D Dynamic Programming / Assess
This pattern usually appears when the prompt involves best value or count depends on a previous line of states. Climbing Stairs, House Robber, Decode Ways, and coinchange style…
LeetCode Card 318 — 1D Dynamic Programming / Structure
This pattern usually appears when the prompt involves best value or count depends on a previous line of states. Climbing Stairs, House Robber, Decode Ways, and coinchange style…
LeetCode Card 319 — 1D Dynamic Programming / Implement
This pattern usually appears when the prompt involves best value or count depends on a previous line of states. Climbing Stairs, House Robber, Decode Ways, and coinchange style…
LeetCode Card 320 — 1D Dynamic Programming / Check
This pattern usually appears when the prompt involves best value or count depends on a previous line of states. Climbing Stairs, House Robber, Decode Ways, and coinchange style…
LeetCode Card 321 — 2D Dynamic Programming / Breakdown
This pattern usually appears when the prompt involves state depends on two indices, two strings, or gridlike subproblems. Longest Common Subsequence, Edit Distance, unique paths…
LeetCode Card 322 — 2D Dynamic Programming / Assess
This pattern usually appears when the prompt involves state depends on two indices, two strings, or gridlike subproblems. Longest Common Subsequence, Edit Distance, unique paths…
LeetCode Card 323 — 2D Dynamic Programming / Structure
This pattern usually appears when the prompt involves state depends on two indices, two strings, or gridlike subproblems. Longest Common Subsequence, Edit Distance, unique paths…
LeetCode Card 324 — 2D Dynamic Programming / Implement
This pattern usually appears when the prompt involves state depends on two indices, two strings, or gridlike subproblems. Longest Common Subsequence, Edit Distance, unique paths…
LeetCode Card 325 — 2D Dynamic Programming / Check
This pattern usually appears when the prompt involves state depends on two indices, two strings, or gridlike subproblems. Longest Common Subsequence, Edit Distance, unique paths…
LeetCode Card 326 — Monotonic Stack / Breakdown
This pattern usually appears when the prompt involves next greater/smaller relationships or range influence determined by nearest boundary violations. Daily Temperatures, Next…
LeetCode Card 327 — Monotonic Stack / Assess
This pattern usually appears when the prompt involves next greater/smaller relationships or range influence determined by nearest boundary violations. Daily Temperatures, Next…
LeetCode Card 328 — Monotonic Stack / Structure
This pattern usually appears when the prompt involves next greater/smaller relationships or range influence determined by nearest boundary violations. Daily Temperatures, Next…
LeetCode Card 329 — Monotonic Stack / Implement
This pattern usually appears when the prompt involves next greater/smaller relationships or range influence determined by nearest boundary violations. Daily Temperatures, Next…
LeetCode Card 330 — Monotonic Stack / Check
This pattern usually appears when the prompt involves next greater/smaller relationships or range influence determined by nearest boundary violations. Daily Temperatures, Next…
LeetCode Card 331 — Shortest Paths / Breakdown
This pattern usually appears when the prompt involves weighted path optimization or repeated frontier relaxation. Network Delay Time, Cheapest Flights Within K Stops, Dijkstralike…
LeetCode Card 332 — Shortest Paths / Assess
This pattern usually appears when the prompt involves weighted path optimization or repeated frontier relaxation. Network Delay Time, Cheapest Flights Within K Stops, Dijkstralike…
LeetCode Card 333 — Shortest Paths / Structure
This pattern usually appears when the prompt involves weighted path optimization or repeated frontier relaxation. Network Delay Time, Cheapest Flights Within K Stops, Dijkstralike…
LeetCode Card 334 — Shortest Paths / Implement
This pattern usually appears when the prompt involves weighted path optimization or repeated frontier relaxation. Network Delay Time, Cheapest Flights Within K Stops, Dijkstralike…
LeetCode Card 335 — Shortest Paths / Check
This pattern usually appears when the prompt involves weighted path optimization or repeated frontier relaxation. Network Delay Time, Cheapest Flights Within K Stops, Dijkstralike…
LeetCode Card 336 — Bit Manipulation / Breakdown
This pattern usually appears when the prompt involves parity, masks, compact state, powers of two, or toggling flags efficiently. Single Number, counting bits, subset masks, and…
LeetCode Card 337 — Bit Manipulation / Assess
This pattern usually appears when the prompt involves parity, masks, compact state, powers of two, or toggling flags efficiently. Single Number, counting bits, subset masks, and…
LeetCode Card 338 — Bit Manipulation / Structure
This pattern usually appears when the prompt involves parity, masks, compact state, powers of two, or toggling flags efficiently. Single Number, counting bits, subset masks, and…
LeetCode Card 339 — Bit Manipulation / Implement
This pattern usually appears when the prompt involves parity, masks, compact state, powers of two, or toggling flags efficiently. Single Number, counting bits, subset masks, and…
LeetCode Card 340 — Bit Manipulation / Check
This pattern usually appears when the prompt involves parity, masks, compact state, powers of two, or toggling flags efficiently. Single Number, counting bits, subset masks, and…
LeetCode Card 341 — Matrix Traversal / Breakdown
This pattern usually appears when the prompt involves grid movement, boundary control, inplace marking, or BFS/DFS over 2D structure. Spiral Matrix, Set Matrix Zeroes, Number of…
LeetCode Card 342 — Matrix Traversal / Assess
This pattern usually appears when the prompt involves grid movement, boundary control, inplace marking, or BFS/DFS over 2D structure. Spiral Matrix, Set Matrix Zeroes, Number of…
LeetCode Card 343 — Matrix Traversal / Structure
This pattern usually appears when the prompt involves grid movement, boundary control, inplace marking, or BFS/DFS over 2D structure. Spiral Matrix, Set Matrix Zeroes, Number of…
LeetCode Card 344 — Matrix Traversal / Implement
This pattern usually appears when the prompt involves grid movement, boundary control, inplace marking, or BFS/DFS over 2D structure. Spiral Matrix, Set Matrix Zeroes, Number of…
LeetCode Card 345 — Matrix Traversal / Check
This pattern usually appears when the prompt involves grid movement, boundary control, inplace marking, or BFS/DFS over 2D structure. Spiral Matrix, Set Matrix Zeroes, Number of…
LeetCode Card 346 — Design and LRU Cache / Breakdown
This pattern usually appears when the prompt involves object behavior, custom API semantics, and datastructure composition. LRU Cache, Min Stack, randomized set, and iterator or…
LeetCode Card 347 — Design and LRU Cache / Assess
This pattern usually appears when the prompt involves object behavior, custom API semantics, and datastructure composition. LRU Cache, Min Stack, randomized set, and iterator or…
LeetCode Card 348 — Design and LRU Cache / Structure
This pattern usually appears when the prompt involves object behavior, custom API semantics, and datastructure composition. LRU Cache, Min Stack, randomized set, and iterator or…
LeetCode Card 349 — Design and LRU Cache / Implement
This pattern usually appears when the prompt involves object behavior, custom API semantics, and datastructure composition. LRU Cache, Min Stack, randomized set, and iterator or…
LeetCode Card 350 — Design and LRU Cache / Check
This pattern usually appears when the prompt involves object behavior, custom API semantics, and datastructure composition. LRU Cache, Min Stack, randomized set, and iterator or…
LeetCode Card 351 — Math and Combinatorics / Breakdown
This pattern usually appears when the prompt involves counting, modular arithmetic, number properties, or formuladriven reduction. Power functions, combination counting, matrix…
LeetCode Card 352 — Math and Combinatorics / Assess
This pattern usually appears when the prompt involves counting, modular arithmetic, number properties, or formuladriven reduction. Power functions, combination counting, matrix…
LeetCode Card 353 — Math and Combinatorics / Structure
This pattern usually appears when the prompt involves counting, modular arithmetic, number properties, or formuladriven reduction. Power functions, combination counting, matrix…
LeetCode Card 354 — Math and Combinatorics / Implement
This pattern usually appears when the prompt involves counting, modular arithmetic, number properties, or formuladriven reduction. Power functions, combination counting, matrix…
LeetCode Card 355 — Math and Combinatorics / Check
This pattern usually appears when the prompt involves counting, modular arithmetic, number properties, or formuladriven reduction. Power functions, combination counting, matrix…