Search
⌘K

Leetcode 2678. Number of Senior Citizens

Given an array of fixed-format 15-character strings where chars 0–9 are phone, char 10 is gender, chars 11–12 encode age, count how many passengers have age strictly greater than 60 by parsing the age substring for each entry (linear scan).


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Comments

Your account is free and you can post anonymously if you choose.