Longest Substring Without Repeating Characters: The Sliding Window Origin Story
6 min read Given a string, find the length of the longest substring without repeating characters. This is LeetCode 3, and it is […] Read article
6 min read Given a string, find the length of the longest substring without repeating characters. This is LeetCode 3, and it is […] Read article
7 min read “Why are you leaving your current job?” is the behavioral question that asks for honesty without actually inviting it. The Read article
6 min read You flip a fair coin repeatedly. What is the expected number of flips until you see the pattern HT? And Read article
7 min read Cracking the Coding Interview by Gayle Laakmann McDowell, first published in 2008, is the most influential book in the history Read article
6 min read You have a biased coin that comes up heads with probability p and tails with probability 1-p, where p is Read article
7 min read Given an array of heights representing a histogram, find the area of the largest rectangle that fits entirely within the Read article
6 min read “Where do you see yourself in five years?” is the behavioral question in soft decline. For most of the 1990s Read article
7 min read “What is your greatest weakness?” is the most-mocked interview question in tech and finance hiring history. It has been parodied Read article
7 min read One hundred prisoners are sent to solitary cells. Each day, a guard picks one prisoner uniformly at random — possibly Read article
7 min read “Tell me about a time you failed” is the hardest behavioral question in the standard interview canon. It demands the Read article
7 min read Given two sorted arrays of sizes m and n, find the median of the combined sorted array in O(log(m+n)) time. Read article
7 min read Every interview starts the same way. The hiring manager joins the call, exchanges 30 seconds of small talk, and then Read article
7 min read Given an array of non-negative integers representing an elevation map where the width of each bar is 1, compute how Read article
7 min read A family has two children. At least one of them is a boy. What is the probability that both are Read article
7 min read On June 19, 2013, Adam Bryant of the New York Times published an interview with Laszlo Bock, then Google‘s Senior Read article