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.
Return unit is not specified, and is extremely unexpected: it actually wants
dollar / liter
instead ofdollar / gallon
.The unit of
usPrice
andeuPrice
isn't given. It can only be sort of guessed by the description..
Thanks. :-)
I wrote an additional hint in the description and added comments for the corresponding tests.
I changed it. And with a comment so that it is clear, that 0 means 000.
This comment is hidden because it contains spoiler information about the solution
I said Description >>>to me<<< is very unclear. It means that my English ability is not enough to understand your description. For example:
I don't know what the
price
means.(net price or initial price)?So I started to guess...
Because the test case is very few, so guess is not smooth :]
Nice solution! I like this small footprint :-)
Sorry my english is not so good. Which part of the description you don't understand?
Sorry, i've forgot to test x,x4 / x,x6 problem. I've edited the kata so this solution fails.
Nice kata.
I fixed some mistakes in the description and improved the visualization.
Description cryptic at best. It would be nice if you explicetly show :
var usPrice = { diesel: 2.165, gas: 2.137 };
var euPrice = { diesel: 1.049, gas: 1.149 };
var eur2usd = 1.1305;
it's hard to decide what one should do without reading forum
I assumed that you would normally rounded that way.
I have now added a note due to multiple desire with respect to the liter / gallon - problem.
This comment is hidden because it contains spoiler information about the solution
I'm afraid many non us-warriors may still stay stuck with usd/gallon price , and I think, at least, the word "gallon" should appear in description.
Loading more items...