Solution1 Traverse

  • Time complexity: O(m*n)

  • Space complexity: O(1)

Last updated