No one has replied
No problem :)
I agree with the comment above. I solved this on my own and it took me some time to get the index right for the sub-grid case. In real interview case, I think simpler solution is easier to code and less prone to make mistakes.
My pleasure. ^_^
I got this wiki solution written in c.but it seems has nothing to do with backtracking
the condition for the for loop should be >small
rowIndex = 0 as the input would output with an runtime error (trying to access array with index -1),
but still thanks for sharing the idea :)))))
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.