We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
There's a very unintuitive bit of the question which is that only COMPLETE vertical breaks should be avoided (i.e. that span the whole height). This is completely different to how you would intuitively build a wall in real life; you would not want any vertical breaks larger than height=1. There should at least be an example to make this clear as I don't think there's a neat solution for the more intuitively posed version of this question.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Lego Blocks
You are viewing a single comment's thread. Return to all comments →
There's a very unintuitive bit of the question which is that only COMPLETE vertical breaks should be avoided (i.e. that span the whole height). This is completely different to how you would intuitively build a wall in real life; you would not want any vertical breaks larger than height=1. There should at least be an example to make this clear as I don't think there's a neat solution for the more intuitively posed version of this question.