Fix bug in largest_square: y direction
We were not taking into account that the largest_square may be constrained by the y position as well as the x. i.e. is there enough vertical space for the square. This commit adds that check. We were working before because C++ is not memory safe, and we weren't running debug builds.
This commit is contained in:
Reference in New Issue
Block a user