Ad
  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    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?

  • Custom User Avatar

    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 :)

  • Custom User Avatar

    Try to separate the if condition to else if conditions. Handle the null first, that worked for me but nor with the or statements.

  • Custom User Avatar

    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!

  • Custom User Avatar

    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.

  • Custom User Avatar

    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 :)

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    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?

  • Custom User Avatar

    HerrWert was right, the description is misleaing. I would recommend to add the vice-versa to the description.

  • Custom User Avatar

    More elegant than mine for sure :) THX!

  • Custom User Avatar

    Well, my bad :) Thanks for the explanation! Lesson for life for sure... :)

  • Custom User Avatar

    Array was [0,1,2] for simple test. 0 is confusing as it could be considered as odd or even.