← Google questions
CodingReported in a candidate post, Jan 2022

Attendance string detention rules and permutation count

Filed under Google

Part 1: Determine if an attendance string (containing 'O' for on-time, 'L' for late, 'A' for absent) results in detention based on rules (>2 consecutive lates or >1 absence). Part 2: Given length N…

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Google questions

Collected from public candidate posts and coding forums. Updated Nov 2026.