DFS: Connected Cell in a Grid

  • + 0 comments

    It sends the original array instead of sending a copy of the array, saves time and space at the cost of actually changing the input array.