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.
This comment is hidden because it contains spoiler information about the solution
Hi! In test case # 3 why should I get 5 instead of 8? I might did not get the description right but according to my understanding that should be 8 as per the given matrix?
Nice kata, I really like the ide to keep trying to solve this. The only backdraw is the instruction. Most cases the advanced test cases reflects the real requirement so as in this case. I would recommend you to extend the explanation to reflect that the area of the rectangle can have residual parts that has to be split up further as per the well known sequence for this kata :)
Try to separate the if condition to else if conditions. Handle the null first, that worked for me but nor with the or statements.
The test case should need a double check for random numbers. I had 129 for "n" and 19 for "p" but the result that was given had like 38 lines, wherease it should be 24?
Thanks for your answer in advance!
P.s.: Nice kata!
The 55 is the 10th (n=10) Fibonacci number, therefore the [2, 5] is the list for [count of number in n-th Fibonacci number, number in place of in n-th Fibonacci number]. I hope this explanation will help you out a bit.
Thanks a lot! I fixed it and it is working now. For some misunderstanding I thought, that I have to take out the numbers with 5 in the end :)
This comment is hidden because it contains spoiler information about the solution
I have an issue with the test case when the range is 1 to 90.
✘ 81 should equal 72
This is only possible if I do not count the numbers divisible by 10?
HerrWert was right, the description is misleaing. I would recommend to add the vice-versa to the description.
More elegant than mine for sure :) THX!
Well, my bad :) Thanks for the explanation! Lesson for life for sure... :)
Array was [0,1,2] for simple test. 0 is confusing as it could be considered as odd or even.