· 4 min read
Kadane's Algorithm: Find the Maximum Subarray Sum
Trace Kadane's algorithm through a small array. Learn when to extend or restart a subarray, why two running values matter, and how to handle negative numbers.
Read article →The Hourly DSA blog
Notes on data structures, algorithms, and finding a study routine you can stick with.
· 4 min read
Trace Kadane's algorithm through a small array. Learn when to extend or restart a subarray, why two running values matter, and how to handle negative numbers.
Read article →· 4 min read
Compare memoization and tabulation through a minimum-coin example. Trace repeated states, choose dependency order, and distinguish cache storage from call-stack space.
Read article →· 4 min read
Compare BFS and Dijkstra with a weighted graph. Trace distance updates, understand the min-heap and stale entries, and see why negative weights break the rule.
Read article →· 4 min read
Understand trie prefix search with a small word set. Trace shared paths, distinguish a prefix from a complete word, and account for lookup and output costs.
Read article →· 4 min read
Trace union-find through a small network. Learn what find and union mean, how undirected cycle detection works, and why balancing and path compression matter.
Read article →· 3 min read
Learn binary search on the answer with a shipping-capacity example. Build a monotonic feasibility check, choose safe bounds, and trace the first valid value.
Read article →· 4 min read
Understand greedy algorithms with interval scheduling and a coin-change counterexample. Learn how an exchange argument proves a choice is safe.
Read article →· 4 min read
Understand dynamic programming with a stair-counting example. Define the state, recurrence, and base cases, then learn when memoization saves repeated work.
Read article →· 4 min read
Learn how to merge overlapping intervals with a sorted scan. Trace nested ranges, handle touching endpoints, and explain the time and space complexity.
Read article →· 4 min read
Learn prefix sums with a range-sum example and a subarray-sum trace. Understand the extra zero, negative numbers, and when a frequency map is needed.
Read article →· 4 min read
Learn topological sorting through course prerequisites. Trace Kahn's algorithm, understand indegrees and cycle detection, and explain the O(V + E) bound.
Read article →· 4 min read
Learn when to use two pointers or sliding window with worked examples, the conditions each needs, and a negative-number example that exposes a common bug.
Read article →· 4 min read
Understand Floyd's cycle detection with a pointer trace. Learn why slow and fast pointers meet, how to find the cycle entry, and which edge cases matter.
Read article →· 4 min read
Compare BFS and DFS with a small graph, a shortest-path example, and time and space bounds. Learn when a queue, stack, and visited set matter for correctness.
Read article →· 4 min read
Understand stacks and queues through operation traces, balanced brackets, and BFS. Learn when removal order matters and which complexity assumptions to state.
Read article →· 4 min read
Compare hash maps and hash sets for duplicates, Two Sum, and frequency counting. Learn what to store, when to check it, and how to explain the complexity.
Read article →· 4 min read
Compare Hourly DSA and AlgoExpert for coding interview prep. See where quick concept questions, video explanations, and complete coding sessions fit your day.
Read article →· 5 min read
Compare backtracking and dynamic programming using subset sum. Learn when to explore choices, when states repeat, and why listing answers changes the cost.
Read article →· 4 min read
Get unstuck on a coding interview problem by clarifying the output, building a tiny example, finding repeated work, and using hints without losing the learning.
Read article →· 4 min read
Find the k largest elements with a small min-heap. Follow a worked example, compare sorting, and understand heap direction, duplicates, and complexity.
Read article →· 4 min read
Understand binary search boundaries with a first-match example. Learn why left moves past mid, why right keeps mid, and how to avoid duplicate and empty-array bugs.
Read article →· 4 min read
Learn the monotonic stack pattern with a next-greater-element trace. Understand what gets popped, how duplicates work, and why the nested loop is O(n).
Read article →· 4 min read
Hourly DSA vs. Educative for interview prep: compare short daily questions with pattern-based coursework, plus an example of choosing the right data structure.
Read article →· 4 min read
Turn wrong DSA answers into useful review questions. Identify the missed assumption, write a tiny counterexample, and test the reasoning with a fresh variation.
Read article →· 4 min read
Learn Big O notation with short examples of loops, halving, and memory. Understand why nested loops aren't always quadratic and how to explain your answer.
Read article →· 4 min read
Build a practical 20-minute DSA study routine with a quick concept check, one focused problem attempt, and a short review you can use in your next session.
Read article →· 5 min read
Compare Hourly DSA and LeetCode for coding interview prep: short pattern-recognition questions, full coding problems, and a practical way to use both together.
Read article →· 6 min read
Hourly DSA vs. NeetCode for interview prep: compare quick daily practice with guided courses and coding problems, and find a routine that fits your schedule.
Read article →