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.
We programmers know our kind too well
👀 https://rosettacode.org/wiki/Hamming_numbers#C.23
This was an error. It is fixed now, pardon me.
In python, everything is being converted to litre:
One further issue is that you're using "g" for gallons, but this is the SI symbol for grams. The standard symbol for gallons (both US and Imperial) is "gal".
Thank you for the insight. I am glad you properly understand the kata description.
Alright then.
This makes total sense, but I think it would be worth mentioning then, at least as a hint, that calculations have to be exact and that given ratios are also exact.
You need to be more specific (and less parochial) about units. E.g. your gallons appear to be US gallons, but the most of the world uses imperial gallons. This applies to a number of different measures, mainly of volume. See: https://en.wikipedia.org/wiki/Comparison_of_the_imperial_and_US_customary_measurement_systems. Also "English" is the wrong way to describe US/Imperial units.
If I get you correctly, you are asking how the values in the test relate? If that is the issue, in the description you were given a table of values to convert back and forth. For weight, convert kg to lb using the values provided and vise versa. Approximate equality would not work for this as no values were approximated for the result. Please use exact equality.
Exactly @hobovsky. @FArekkusu please explain yourself properly. If this is about random tests, they have been added. Else I need more undestanding of your issue to actually do something about it.
Not that I know, but if somebody asked me, I might suspect that it has something to do with how poorly the issue was reported from noob's poin of view, so they totally did not know what it's about.
But I don't know.
Why is this resolved? Why do you think the issue I've raised has anything to do with @dfhwze's message?
The result should be checked for approximate equality. As of now, it's impossible to solve the kata without knowing how exactly you're calculating the new values.
No. Kilograms(kg), Pounds(lb), Gallons(g), Litres(l).
But I can see how that confuses one. This has been updated in the description.
Sorry for the confusion.
Loading more items...