String Interview Patterns
9 min read Strings appear in roughly 25-30% of coding interviews. Unlike arrays or trees, string problems have a concentrated set of patterns […] Read article
9 min read Strings appear in roughly 25-30% of coding interviews. Unlike arrays or trees, string problems have a concentrated set of patterns […] Read article
7 min read Interval problems are a reliable interview topic at every level. The core patterns repeat across dozens of problems – learn Read article
9 min read Trie (prefix tree) problems appear frequently in coding interviews. This guide covers the core patterns with Python implementations you can Read article
11 min read Shortest path problems appear in nearly every graph interview. The key skill is recognizing which algorithm applies to the given Read article
10 min read Range query problems appear frequently in competitive programming and technical interviews. Knowing which data structure to reach for – and Read article
8 min read Monotonic Deque Pattern – Sliding Window Maximum LeetCode 239. Given an array and window size k, return the maximum in Read article
7 min read Core Probability Concepts Probability questions test your ability to reason about uncertainty and expected behavior. Three concepts appear repeatedly in Read article
5 min read The Two-Eggs (Light Bulbs) Problem: 80-Floor Building, Optimal Strategy, and DP “You have 2 eggs and a 100-floor building. Find Read article
5 min read Return True with Probability p/q: Sampling Without Bias “Given a function that returns a uniform random value, write a function Read article
5 min read Multiply Two Integers Without Using Multiplication: Russian Peasant, Bit Shifts, Recursion “Multiply two integers without using the * operator” is Read article
5 min read Generate Random Numbers in a Range Using a Smaller Random Source “Given rand5() that returns a uniform integer 1–5, implement Read article
5 min read Compute x^y for Floats and Negative Exponents: Fast Exponentiation Computing pow(x, y) efficiently is LeetCode #50 and a frequently-asked interview Read article
2 min read I met three dragons. One always tells the truth, other one always lies and the last one alternates between lie Read article
5 min read Bayesian Weather Forecasting: How Forecasts Update with Evidence “How do you forecast tomorrow’s weather given today’s observation?” is a classic Read article
2 min read A half is a third of it. What is it? 2026 Update: The Half-Full Glass — Estimation and Fermi Problems Read article