Streak Keeper — SQL

Find each user's longest unbroken run of active calendar days, where repeat logins within a date count as a single day and a missed date ends the run.

SQL · Hard

More in SQL

All algorithm problems