Search
⌘K
Get Premium
Leetcode 1271. Hexspeak
Convert the given decimal number to uppercase hexadecimal and determine if every hex digit is either 0,1 or A–F; if so, map 0→'O' and 1→'I' to produce the "hexspeak" string, otherwise return "ERROR".
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Comments
Hello Interview Premium
Your account is free and you can post anonymously if you choose.