MCPcopy Create free account
hub / github.com/aylei/leetcode-rust / Solution

Class Solution

src/solution/s0091_decode_ways.rs:31–31  ·  view source on GitHub ↗

* [91] Decode Ways * * A message containing letters from A-Z is being encoded to numbers using the following mapping: * * * 'A' -> 1 * 'B' -> 2 * ... * 'Z' -> 26 * * * Given a non-empty string containing only digits, determine the total number of ways to decode it. * * Example 1: * * * Input: "12" * Output: 2 * Explanation: It could be decoded as "AB" (1 2) or "L" (12). * * *

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected