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.
@akar-0 Well, normally you try to make sure your test cases ARE isolated, so the outcome of one test does not affect any other.
In case of isolated test cases memoisation won't give you any advantage, because any cache collected by the previous test case should be cleared.
If it's not the case here, and you use this fact to your advantage, then yes, I believe it's cheating in this context.
Even if it would be a viable strategy in a real-world task.
Though if a faster algorithm does exist, then this kata does not rely on the test case interference, which makes the point moot.
Description needs to be more clear on what a and b parameters are.
This comment is hidden because it contains spoiler information about the solution
Description should better explain how the number of eggs N is different from the number of tries M.
As far as I understand it, it's not a problem with two parameters, it's a problem with one parameter: min(M, N)
Or do we get M tries per each egg, so it's M * N?
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Ah, so any code fragment in the comments merits spoiler flag?
This comment is hidden because it contains spoiler information about the solution