Spread Sheet Decode
excerpt: This covers the building block alphabet ascii value. tags: ascii-code reverse-modulo
Given a spreadsheet column string like AA, AZ etc, decode it into its numeric value.
Example:
AA => 27
Z => 26
Use the reverse of modulo operation to decode the string back to integer.
|
|
Time complexity is O(N) and space complexity is O(1).
Building Blocks
- Alphabet ASCII Code
- Reverse Modulo