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.
Haskell translation
TypeScript Translation
TypeScript translation
Not rational and likely to cause headaches.
It takes into account for total cost, the fuel you consume travelling to and from said station; This is why the original examples price is 48.75, it is the price 1.5 * the total in litres 32.5. You will be filling the original 60 - 35 = 25 litres, plus the trip to and from which are each 3.75 litres. Based on Fuel Consumption 7.5/100 * distance.
But, it doesn't take into account total fuel you will have upon returning to your home.
So, my original solution checked to make sure that if you LEAVE to get fuel you will return home with MORE fuel than when you left.
Some test cases had me returning home with less fuel, why would i leave home and waste money to have less fuel.
I understand it is for fun, but more concise explanation or description would help understand the goal of the function.
So, it is not a practical or realistic test and should reflect better parameters in the description.
This comment is hidden because it contains spoiler information about the solution
Java translation
Description should use Markdown instead of HTML.
Description should be language-agnostic
Java translation
This is a problem I found in Python but it may be a problem in basically all of the implementations, considering this seems to have been an issue regardless of language
Python's
countdown
function, the one used to validate the code of the user, has an error in its implementation when dealing with datetimes of 30 seconds.For example, it returns the value answer
704 minutes
for both12:15:30
and12:16:30
. This happens because python's built-in implementation ofround
evaluate for the closest pair when dealing with.5
in 0 decimals precision. From the documentation:Source
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
I don't understand how to round up the minutes. This command does not work:
Please tell me how to round up the minutes?
What does it mean? What's
x
?JS: Node v14 should be used along with its appropiate assertion tools (Mocha + Chai).
Refer to this and this
Loading more items...