Ad
  • Custom User Avatar

    The Description is not clear enough

    • In deducts, you should mention that the client will have dedcuts for one time only

    • and give examples with big numbers to clearify the idea

    because first I thought I will get 50 pounds off for every 7 days and the remains if they are 3 or more I will get 20 pounds off, as this will be the real life situation
    I marked it as an issue as the logic is not easy to understand

  • Custom User Avatar

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

  • Custom User Avatar

    so... you can make something stupidly wrong like I did on my second attempt, but it will be flagged as correct, since the range for the random test is stupidly big. I suggest reducing the range for the random tests, or making some of them smaller then 7, if possible

  • Default User Avatar

    It worked for me tho I found it unfair for user with 20 and 10 days rental get equal fee reduction of $50. It would be good if the (amount to be decreased for both 3 and 7 or more days) is dependent on the multiples of the days. This would make user with 20 days get twice reduction than 10 and the same goes to 3 days discount.
    And for those who are wondering how to discount for higher numbers with both 3 and 7 days discounts, it would be simpler if the higher discount among the two (refering to 3 or 7 days) would be chosen.
    JUST A SUGGESTION... * _ * + _ + * _ *

  • Custom User Avatar

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

  • Default User Avatar

    C, Crystal, C#, Factor, Python, Ruby: there are test have zeros in the input collection.
    CoffeeScript: the random test can generate zeros.

  • Custom User Avatar

    Random tests do not generate cases for N = 0 in

    • C++
    • Crystal
    • Factor
    • Java
    • JS
    • Prolog
    • Ruby
    • TS
  • Custom User Avatar

    Missing sample and fixed tests for N = 0 in

    • CS
    • Java
    • JS
    • Prolog
  • Custom User Avatar

    Crystal && Ruby:

    You are given an array with positive numbers but random tests generate array of negative numbers

  • Custom User Avatar

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

  • Default User Avatar

    I think it'd be good to update the "for you and your girlfriend" bit to be more inclusive of the different people who will read this or to change the story to be about a fictional person instead of the reader.

    While as others have said, the exercise's wording could be improved in other ways, I thought it was worth mentioning, too.

  • Custom User Avatar

    This is a very poorly worded excercise. Someone needs to refactor the problem statement to make it more clear and remove the bad English mistakes!

  • Custom User Avatar
  • Default User Avatar

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

  • Custom User Avatar

    In the Rust version of this Kata:

    The description "If N is outside of the array, then return -1" does not match the test cases do_test( ...., None);.

  • Loading more items...