Quick Summary
- Chronologically rank each user's activity by distinct calendar months, ignoring gaps.
- Filter to the first and third active months to compare early versus sustained engagement.
- Aggregate ride ratings at the city level while preserving individual user timelines.
What This Tests
- Correctly partitioning window functions to maintain independent per-user sequences.
- Extracting and comparing date granularities to identify active periods.
- Ordering operations to filter ranked subsets before calculating group-level aggregates.
- Handling edge cases where users lack sufficient active months for comparison.
Common Patterns
Inner Join
Window Function
Ranking
Aggregation
Ask AI Assistant

Ask AI Assistant
Ask me anything about this coding question!
Test Cases
Input
-
Output
-
Expected
-