Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Resolving since poster already solved the kata, so they probably know the answer :)
This comment is hidden because it contains spoiler information about the solution
I am glad you enjoyed it! You are aware though that your solution sometimes fails for some small boards?
Very hard but what a satisfaction when you complete it !!!
With backtracking, you won't get too close to max required size.
It depends what exactly you mean by "[... algorithm you mentioned]", but if it is what I think it is, then it's worth a shot. Still, things depend on details of approach and details of implementation. Some algorithms pass test suite in ~5s, and some are on the edge of timing out.
This comment is hidden because it contains spoiler information about the solution
this might help you https://en.wikipedia.org/wiki/Methods_of_computing_square_roots
Youre right problem was for input 1
Maybe your solution has problems with input {1} ? The answer should be {2}
Hi,
You are right. If input eq {1,1,1}, the answer will be {1,1,2}.
Could you please re-test your solution? We already have 43+ correct c++ solutions and looks like all tests are correct.
Something wrong with edge case for c++ 1,1,1. My solution gives me 1,1,2 which is the correct solution and still get Expected 2 Actual 1 .
This comment is hidden because it contains spoiler information about the solution