← All questions

Coding — SQL, pandas, simulation

Basic aggregates → window functions → multi-CTE → Python / simulation

Why this sequence

SQL warm-ups build muscle for window functions and CTEs. Rolling metrics and cumulative aggregations come next. Multi-part drills consolidate. Python/pandas and numpy simulation close the track. All problems have you solving on a whiteboard in 10 minutes, so brevity matters.

22 questions · 0 mastered · 0 in review
Start here
  1. 01
    Find the Most Frequently Co-Purchased Products
    Q030 Medium High freq
    New
  2. 02
    Find Users Active in One Period But Not Another (Anti-Join Patterns)
    Q035 Medium High freq
    New
  3. 03
    Find the Most Expensive Order for Each User
    Q080 Medium High freq
    New
  4. 04
    Earliest Day Each Video Hit 100 Views
    Q034 Medium High freq
    New
  5. 05
    Time Between the Last Two Ad Views Per User-Ad Pair
    Q037 Medium High freq
    New
  6. 06
    Gmail SQL — Top Countries by Email Volume & Month-over-Month Change
    Q011 Medium High freq
    New
  7. 07
    Top 100 Week-over-Week User Count Changes
    Q033 Medium High freq
    New
  8. 08
    Week-over-Week Search Growth Rate per Country × Language Segment
    Q081 Medium High freq
    New
  9. 09
    Rolling Window Active Users — "Users Active in the Last 7 Days"
    Q038 Medium High freq
    New
  10. 10
    In-App Purchase — Multi-Part SQL Drill (Cumulative, Growth Rate, Rolling Average)
    Q036 Medium High freq
    New
  11. 11
    Tricky Customer Retention Rate with LAG and Multiple CTEs
    Q025 Hard High freq
    New
  12. 12
    Minimum Number of Days to Reach Over 1 Billion Unique Users
    Q054 Hard High freq
    New
  13. 13
    Estimate the Nth Percentile from Bucketed/Histogram Data
    Q007 Medium High freq
    New
  14. 14
    Add a Conditional Column in Pandas Based on Multiple Other Columns
    Q031 Medium High freq
    New
  15. 15
    Pandas GroupBy + Visualization
    Q092 Medium High freq
    New
  16. 16
    Python Simulation — Average Price Under a Randomized Price Hike
    Q022 Medium High freq
    New
  17. 17
    Generate a Scatter Dataset with Slope ≈ 2 and R² ≈ 0.8
    Q052 Medium High freq
    New
  18. 18
    Implement Binary Search on a Sorted Array
    Q104 Easy Medium freq
    New
  19. 19
    Fibonacci in Python — Iterative, Memoized, Matrix-Power
    Q107 Easy Medium freq
    New
  20. 20
    Find the K-th Smallest Element With Quickselect
    Q105 Medium Medium freq
    New
  21. 21
    Generate Samples and Query Distributions in Python (NumPy + SciPy)
    Q106 Easy Medium freq
    New
  22. 22
    Sample From a Weighted Discrete Distribution in Python
    Q103 Medium Medium freq
    New