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.
There should be example cases in the description
you should return the smallest size of that group
should bediameter
as it contradicts with thesize
keyRandom tests only have three sizes whereas sample tests have at least ten
There're different ways to calculate the ratio for comparing price-per-squared-inch values (e.g. this) but they don't work here since regardless of the approach there will be inaccuracies from floating point computations which will mess up the order of the elements, and no rounding will be able to fix this. Either the description should provide an exact formula to be used or all the inputs should be integers to enforce using the solution linked earlier.
The description is not clear at all, there's probably a trick to it but the 6kyu label doesn't warrant the time needed to complete.
Duplicate of all katas with problem statement as finding max with a key, (and the key is simple mathematical formula).
price
property doesn't seem to be limited to two decimal places.Role of coupons is not explained.
It seems to me that if you "love" pizza you would return the largest pizza for a like price...
Instructions are: "If more than one size has the same price per square inch, then you should return the smallest size of that group."
Wouldn't you want the "largest size" of that group???
This comment is hidden because it contains spoiler information about the solution