Design Tic Tac Toe - LeetCode 348 - Python

Sdílet
Vložit
  • čas přidán 27. 05. 2023
  • Solution, explanation, and complexity analysis for the LeetCode Premium problem of the week for the end of May.
    Description(need premium to open or can watch video for problem description and try it yourself):
    leetcode.com/problems/design-...

Komentáře • 3

  • @Alpha-Code
    @Alpha-Code  Před rokem +2

    Small correction, when I talk about space complexity at the end, the original solution with checking the whole row and column would be O(n^2) space, because we'd need to store the grid to look through the rows and columns. The second solution optimized both time and space compared to the first.

  • @womenincodeplusplus4388
    @womenincodeplusplus4388 Před 3 měsíci

    Thank you :)

  • @christianschreiber9239
    @christianschreiber9239 Před rokem +1

    Thanks man this is good stuff