puzzle

Find Adjascent Squares for a Coding Challenge

3 minute read Published:

Random grid of numbers. I spotted a challenge that was something like this online, and I adapted it. There was something that I wanted to understand a little bit better. The interesting thing here is about the data structures used, to increase efficiency. Find Contiguous Squares Imagine you have a grid of n width and height, and it’s populated with random numbers. It could be represented something like this: