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.
You are a hard working person :)
In random tests you sholdn't recareate object Battle before each call of play_turn.
approved
This comment is hidden because it contains spoiler information about the solution
approved
Nice challenging kata. People usually afraid of katas with long description. But this description covers all cases with examples. Small issue: there are unmatched brackets in last two examples in description. Suggest tag: ASCII Art.
The function failed! f(x) = 24.3+(83.3/(69.3*(x^x*x^42.3-9.7^76.5/87.9^x*92.5^2.5)^x/log(x*4.7^x/49.3)^28.4-21.2)^x/x), x = (-4.69,8.75)
Expected: equal to (24.3,7.17589e-06) (+/- (0.0078125,0.001))
Actual: (1.03767e+18,-1.20504e+19)
wolframalpha gives me result: 1.03767×10^18 - 1.20504×10^19 i
It's hard to find solution, including mine, which will have chance to pass random tests in first ten attmpts.
Approved
Approved
approved
Harder version of simular kata, for those who solved this one. https://www.codewars.com/kata/5a13d36046d843105e000106
Approved
on_line(((1,1)))
should beon_line(((1,1),))
Statement
Boxes can not be stacked on top of each other, these can only be placed on the floor.
from description was misleading for me. It only means that rectangles can not overlap.Binary search was overkill here. Perfomance tag means not to check every floor one by one.
Loading more items...