Loading...

The Consecutive Streak

A medium Python interview practice problem on DataDriven. Write and execute real python code with instant grading.

Domain
Python
Difficulty
medium
Seniority
mid, senior

Problem

The retention team wants to badge 'power users' who show up day after day without missing a beat. Given the activity log, find which users were active for 3 or more consecutive days. Watch out for duplicate entries on the same day.

Practice This Problem

Solve this Python problem with real code execution. DataDriven runs your Python code in a sandboxed Docker environment and grades it instantly.