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.
I would specify 'normalPrice' and 'holidayPrice' as variable names in the method, just as a best practice.
done :)
The method should be called 'whoEatsWhom'
#sorrynotsorry
Great idea! How did I not think of it when creating the test cases :)
Thanks!
This comment is hidden because it contains spoiler information about the solution
No need for double quotes. A single-quoted strings don’t process ASCII escape codes, and they don’t do string interpolation while double-quoted does both.
This solution is clever, but not very scalable in case of other coffee types
consider not including a return statement in the default fill-in solution for ruby, as it's discouraged in the style guide.
This comment is hidden because it contains spoiler information about the solution
Nice solution! Please check my (small) stylistic improvement for this solution - https://www.codewars.com/kumite/577ced176a3c22db770000a8?sel=5a37566b1f7f7095aa000088
~ commences seppuku since my solution was way more convoluted ~
This comment is hidden because it contains spoiler information about the solution