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.
If I answered you wouldn't understand: I'm too confusing.
Genuine question for g964 - all your katas have the lowest approval rate and the most hate in the comments.
Your excercises are by a mile the most confusing - why can't you do 'normal' katas like others?
I definitely don't buy anything like 'well if you know how to program you wouldn't have a problem' - you are the only one doing katas this way. Long weird scenarios that will never happen. Curious as to how you choose to be that way, perhaps I'm missing something.
Ok, actually, looked at some of the comments and noticed the creator (g964) had this:
howmuch(10000, 9950) => [["M: 9991", "B: 1427", "C: 1110"]]
So I just added in some code to switch around the upper and lower limits, so that it always loops from lower to upper... I guess his rule
where 0 <= m <= n or m >= n >= 0
applies. Seems a strange twist to throw in thereI am getting an error when I "attempt": expected "[[M 9991 B: 1427 C: 1110]]" received "[]" but when I run on my local setup, I get the expected answer, NOT "[]". I am doing this in C#. In other words, I am calling howmuch(9991, 9991), which is the amount of money and I get the value for the boat and car. Anyone else run into this?
Just finished in C#. Be wary: in my local environment, I had used two escape characters '\\n' to denote '\n' in a string - and that was perfect. But in the Codewars tool, it only wanted '\n' for some reason...