But not with both O(1) rows and columns!
Well, if there are no n dimensions the problem doesn't scale and there is no complexity to be had, because it's finite. :)
Well, if there are no n dimensions the problem doesn't scale and there is no complexity to be had, because it's finite. :)