- Time : O(1)
Space : O(1)
since input board is
9 x 9
we can solve problem in constant time. so we can say time complexity becomesO(1)
.
c++
1 |
|