IntermediateSimulation
Attendance Streak
A string contains `P` for present and `A` for absent across several sessions. Find the longest consecutive run of `P`.
Open problemProblems
Build problem-solving habits with topic filters, difficulty levels, visible examples, and an online code workspace.
Choose a Python Foundations, coding practice, or PCEP review path and work through problems in order.
Difficulty
Showing 2 of 30 problems
Clear filtersA string contains `P` for present and `A` for absent across several sessions. Find the longest consecutive run of `P`.
Open problemTrack passengers on a bus after a sequence of stops.
Open problem