https://leetcode.com/contest/weekly-contest-74/problems/valid-tic-tac-toe-state/
It's a simulation, just be patient and careful.
think of all the possibilities. Classified them. use | stand for the column strike, use - for the row strike.
use the \ and / for the diagonals.
No comments:
Post a Comment