Problems

Practice coding problems

Build problem-solving habits with topic filters, difficulty levels, visible examples, and an online code workspace.

Follow a guided ladder

Choose a Python Foundations, coding practice, or PCEP review path and work through problems in order.

View ladders

Showing 2 of 30 problems

Clear filters
IntermediateSimulation

Attendance Streak

A string contains `P` for present and `A` for absent across several sessions. Find the longest consecutive run of `P`.

Open problem