"120" returns 1
"A" returns 1
"A.abc" returns 1
but why "A0" returns 0?
120 can only be 'AT' as there is no mapping for 0. I guess a lone 0 (30, 40, etc) is an error case?
Indeed, but the expected result for "120" of the validation itself is 1 which makes it quite confusing.
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.