You are viewing a single comment's thread. Return to all comments →
How the heck is this problem ranked as easy? Am I missing something or do people jus tlook at the solutions after 1 glance at the problem?
they are easy compared to the hard level problems. :)
I agree with milad. This one was harder than https://www.hackerrank.com/challenges/sparse-arrays?utm_campaign=challenge-recommendation&utm_medium=email&utm_source=3-day-campaign.
To make matter more complicated, I solved it by calculating the new hourglass value by subtracting out the old cells and adding the new cells, and made the hourglass size (3x3) configurable, and the array size configurable too. But even without this, it is harder than the one mentioned above.
True the question isn't easy.
I am guessing because you just have to brute force the solution. There is no smart/advanced way to get the answer.
It is easy! If not to you then this good practice for you so that later you will see that it is easy.