Compress and Decompress String (Excel-like Encoding)

Given a string s consisting of uppercase letters A-Z, implement two functions compress(s) and decompress(t) such that:

  • decompress(compress(s)) == s
  • The encoding uses an **Excel-like cou...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: