MCPcopy Create free account
hub / github.com/HuberTRoy/leetCode / reduce_abc

Method reduce_abc

String/LetterCombinationsOfAPhoneNumber.py:54–61  ·  view source on GitHub ↗
(strs, currentStr="")

Source from the content-addressed store, hash-verified

52 result = []
53
54 def reduce_abc(strs, currentStr=""):
55 if not strs:
56 return currentStr
57 else:
58 for i in maps[strs[0]]:
59 x = reduce_abc(strs[1:], currentStr=currentStr+i)
60 if x:
61 result.append(x)
62 reduce_abc(digits)
63 return result

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected