Search
⌘K

Leetcode 3581. Count Odd Letters from Number

Convert each digit of the input number into its corresponding alphabet letter and return how many of those mapped letters occupy odd positions in the alphabet—i.e., a simple linear scan with digit→letter mapping and a parity check. This focuses on character mapping and counting, yielding an O(n) time solution.


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.