Count Negative Numbers in a Sorted Matrix: Staircase Search
5 min read Count Negative Numbers in a Sorted Matrix: Staircase Search and Binary Search Counting negative numbers in a row-and-column-sorted matrix (LeetCode […] Read article
5 min read Count Negative Numbers in a Sorted Matrix: Staircase Search and Binary Search Counting negative numbers in a row-and-column-sorted matrix (LeetCode […] Read article
6 min read Missing or Duplicate Number in an Array: XOR, Sum, Cyclic Sort, and Floyd’s Algorithm Finding the missing number or the Read article
5 min read Probability Distribution Functions: PMF, PDF, CDF, and the Common Distributions Understanding probability distribution functions is foundational for quant trading interviews, Read article
6 min read Two Sum: Find a Pair in an Array That Sums to a Target Two Sum is the most-asked coding interview Read article
5 min read Right Rotate an Array by K Elements: Three-Reverse, Cyclic Replacements, and Modulus Tricks Rotating an array by k positions is Read article
3 min read A typical programming interview question is “reverse a string, in place”. if you understand pointers, the solution is simple. even Read article
3 min read problem: using 31 dominoes, where one domino covers exactly two squares, can you cover all the empty squares on this Read article
4 min read Five webloggers – joshua Allen, meg Hourihan, jason Kottke, robert Scoble, and joel Spolsky – were competing for karma points Read article
2 min read You have $10,000 dollars to place a double-or-nothing bet on the Yankees in the World Series (max 7 games, series Read article
2 min read Arrange the numbers 1 to 8 in the grid below such that adjacent numbers are not in adjacent boxes (horizontally, Read article