Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/codemistic/Data-Structures-and-Algorithms
/ numDecodings
Method
numDecodings
Python/decodeWays.py:37–46 ·
view source on GitHub ↗
:type s: str :rtype: int
(self, s)
Source
from the content-addressed store, hash-verified
35
36
return
g_d[s]
37
def
numDecodings(self, s):
38
""
"
39
:type s: str
40
:rtype: int
41
""
"
42
mp = dict()
43
for
i in range(1,27):
44
mp[str(i)] = chr(64+i)
45
# print(mp)
46
return
self.helper(s,mp)
Callers
nothing calls this directly
Calls
1
helper
Method · 0.95
Tested by
no test coverage detected