MCPcopy
hub / github.com/HuberTRoy/leetCode / helper

Method helper

Array/NumberOfIslands.py:53–66  ·  view source on GitHub ↗
(x, y)

Source from the content-addressed store, hash-verified

51 y_length = len(court)
52
53 def helper(x, y):
54 Xy = self.makeXY(x, y)
55 for i in Xy:
56 try:
57 if i[1] < 0 or i[0] < 0:
58 continue
59
60 if court[i[1]][i[0]] == '1':
61 court[i[1]][i[0]] = '0'
62 t = helper(i[0], i[1])
63 except IndexError:
64 continue
65 else:
66 return 1
67
68
69 for y in range(y_length):

Callers

nothing calls this directly

Calls 2

makeXYMethod · 0.95
helperFunction · 0.70

Tested by

no test coverage detected