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

Method makeAround

Array/SurroundedRegions.py:58–66  ·  view source on GitHub ↗
(self, x, y)

Source from the content-addressed store, hash-verified

56"""
57class Solution(object):
58 def makeAround(self, x, y):
59 # if x - 1 >= 0 and y - 1 >= 0 and x + 1 < x_maxes and y + 1 < y_maxes:
60 # return True
61 # right left down up
62 return [(y, x-1),
63 (y, x+1),
64 (y-1, x),
65 (y+1, x)]
66 # return False
67
68 def solve(self, board):
69 """

Callers 1

translate_o_to_eMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected