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.
Wow. I totally overthought this one.
No offense taken, now that you solved it, do you have a suggestion about how would it be clearer?
I was able to figure it out eventually. I mean no offense, it's just not clear when you first read it and look at the examples. But I completed it.
What's the difference between 3 for the price of 2 and buy 3, pay 2 get 1 free? The examples are clear imho. For every 3 mangoes you buy, you only pay 2 and get 1 free.
@Chrono79 It's just generally confusing and not well explained. I would consider re-writing the entire desription and making the examples more clearly match the description. It is still confusing.
Like, is it 3 for the price of 2, or are there free mangoes involved or what? It's just too vague.
Scala translation
What's what you don't understand?
Yeah I stared at it for five minutes before giving up and reading the comments. Even the 'examples' don't clarify much. I think I'll be skipping this kata.
Check again.
Yes, I think adding the $ might be helpful.
Yes, probably. Here they have all kind of "3 for 2", "the second at half price" and many more.
I though of adding the $ sign to the examples, but I don't know if that would be better or not:
Seeing the examples again, if you buy 2, you don't get one free, see the first example. Only if you grab 3, you get one of those free.
Well, where I'm from the stores would usually say "Buy 2 get one free". That presumes that the first two are being paid for and the third one is free. For me, saying "3 for 2" is like saying you are getting 3 for the price of two but there would be no free mangoes. Meaning you would get 3 mangoes for 2 dollars but 2 mangoes would not also be 2 dollars but would be $1.34 or something like that. Probably just a difference in how stores around here say things compared to how they say it wherever you are.
"Buy 2 mangoes get one free" is misleading too. One of those 2 is free? I think pay 2 and get one free is closer to what is asked. But because I'm not a native english speaker, I don't know what's the usual way of writing that. Is "3 for 2" really that strange?
Not a great description. Took me 15 minutes to figure out what the 2 sentence description was trying to say. A simple "buy 2 mangoes get one free" would have made more sense to me anyway.
I have a total mess for an answer. It works, however. Getting the code to be more efficient was a little bit of a challenge. Overall though, a really good challege. I really liked this kata.
Loading more items...