Coding Problems
Source: Problem prompts adapted from Ace the Data Science Interview — Chapter 9 Medium set (Huo & Singh). Starters, harness I/O, and solutions here are original for this course.
Eighteen medium Python problems (peaks, trees, graphs, sliding windows, DP, sampling, Monte Carlo). Each has ≥12 verified tests. Property-checked problems (random sample, π, weighted categories) print OK when constraints hold.
Tips: read the prompt’s I/O block carefully — several problems normalize free order (sort permutations / anagram groups) so grading is deterministic.