Decode Ways

Problem: Decode Ways

A message containing letters A-Z can be encoded into numbers as follows:

  • 'A' -> "1"
  • 'B' -> "2"
  • ...
  • 'Z' -> "26"

Given a string s containing only digits, ret...

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: