MCPcopy
hub / github.com/austingebauer/go-leetcode / Constructor

Function Constructor

design_tic_tac_toe_348/solution.go:13–18  ·  view source on GitHub ↗

** Initialize your data structure here. */

(n int)

Source from the content-addressed store, hash-verified

11
12/** Initialize your data structure here. */
13func Constructor(n int) TicTacToe {
14 return TicTacToe{
15 rowCounts: make([]int, n),
16 colCounts: make([]int, n),
17 }
18}
19
20/** Player {player} makes a move at ({row}, {col}).
21 @param row The row of the board.

Callers 7

TestTicTacToeXWinsRowFunction · 0.70
TestTicTacToeXWinsColFunction · 0.70
TestTicTacToeOWinsRowFunction · 0.70
TestTicTacToeOWinsColFunction · 0.70
TestTicTacToeNoWinsFunction · 0.70

Calls

no outgoing calls

Tested by 7

TestTicTacToeXWinsRowFunction · 0.56
TestTicTacToeXWinsColFunction · 0.56
TestTicTacToeOWinsRowFunction · 0.56
TestTicTacToeOWinsColFunction · 0.56
TestTicTacToeNoWinsFunction · 0.56