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.
Description should mention
d
will always be a positive integerThis comment is hidden because it contains spoiler information about the solution
Lua translation !
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
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
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... * _ * + _ + * _ *
This comment is hidden because it contains spoiler information about the solution
C, Crystal, C#, Factor, Python, Ruby: there are test have zeros in the input collection.
CoffeeScript: the random test can generate zeros.
Random tests do not generate cases for
N = 0
inMissing sample and fixed tests for
N = 0
inCrystal && Ruby:
You are given an array with positive numbers
but random tests generate array of negative numbersThis comment is hidden because it contains spoiler information about the solution
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.
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!
NASM translation
Loading more items...