Day 5 of 133
A/B testing in production + DSA Two Pointers finish
MDE, sample size, SRM, peeking, CUPED — the four things that ruin tests.
DSA · NeetCode Two Pointers
- Container With Most WaterDSA · Two Pointers
Interview questions to prep
- Prove that moving the shorter pointer can never lose the optimal answer.
- How is this different from trapping rain water, even though both look similar?
- Trapping Rain WaterDSA · Two Pointers
Interview questions to prep
- Compare DP (precompute left-max, right-max) vs two-pointer O(1) space — walk through the two-pointer invariant.
- What if rainwater can flow off the sides — how does that change anything?
Math · A/B testing in production
Interview questions to prep
- How do you choose sample size for an A/B test? What's MDE?
- What is sample-ratio mismatch (SRM) and why is it a red flag?
- Walk through how to design an experiment to detect a 1% lift in conversion.
Interview questions to prep
- Why does 'checking the test daily and stopping when significant' inflate Type I error?
- What are sequential testing methods (e.g., always-valid p-values) and when would you use them?
Interview questions to prep
- Explain CUPED in plain English. Why does it shrink confidence intervals?
- What's the difference between stratification and CUPED for variance reduction?
References & further reading
- Evan Miller — A/B testing pitfalls ↗Evan Miller
- StatQuest — Statistics & ML playlists ↗YouTube
- NeetCode roadmap (full 250) ↗NeetCode