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.
Think there is a syntax error in the test cases.
This was after straight returning "It's not possible!"
Thanks, removed.
Grossly missunderstood the approx_equal documentation (Turns out it doesnt work the same as NumPy!). Settled on a margin of +/- .01, which feels reasonable.
I think it should be behaving correctly now, let me know if I missed anything else!
Thank you! Swapped them.
Thanks again :)
thanks!
"The area on which the percentage is calculated is w(h-1)"
As I understand it, the area should be calulated as "(w-2) * (h-1)". This accounts for the bottom of the glass and the walls of the glass.
Corrected. Thanks for the catch!
Ahh, i passed over that one since it was a bug-fix kata. Fair point.
This feels trivially simple as written. Maybe consider outputing the answer as a string?
Oddly enough, I cant find a duplicate of something this simple.
The second point still stands.
May want to consider random test cases, but maybe that is overkill considering the simplicity of the solution.
Really cool idea. This is an example of something I understood intuitevly from playing tons of table top games, but never thought about mathematically.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Loading more items...