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

Method translate_o_to_e

Array/SurroundedRegions.py:81–89  ·  view source on GitHub ↗
(x, y)

Source from the content-addressed store, hash-verified

79 y_length = len(board)
80
81 def translate_o_to_e(x, y):
82 # pass
83 # coordinate = self.makeAround(x, y)
84 # if coordinate:
85 for i in self.makeAround(x, y):
86 if i[0] >= 0 and i[1] >= 0 and i[0] < y_length and i[1] < x_length:
87 if board[i[0]][i[1]] == "O":
88 board[i[0]][i[1]] = "E"
89 translate_o_to_e(i[1], i[0])
90
91 # up down
92 e_coordinate = []

Callers

nothing calls this directly

Calls 1

makeAroundMethod · 0.95

Tested by

no test coverage detected