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.
What was the previous name?
Haha, many people do, the name of this kata was changed several times will do it asap :).
Ty for advice.
EDIT: done ;).
Thank you very much for your example test cases; I have added them :D
Thank you very much for your kind words :D
But I thought there were already quite a few fixed and random test cases? If you think it is not enough I can always add a few more :)
Corrected, Tnx
There exists a certain mathematical property, although the precision is a bit less than one of the real
pow
.Wow if
Math.pow(x,y)
can handlefloat
exponents then I really have no idea how to fully recoverMath.pow(x,y)
.This comment is hidden because it contains spoiler information about the solution
Thanks for the suggestion, I didn't know
Math.pow(x,y)
could handle negative exponents.Perhaps I'll include this in my next Kata, asking the user to recover
Math.pow(x,y)
such that it can handle negative and zero exponents as well as positive ones :D By the way, do you know if it also handles fraction/decimal exponents (e.g.Math.pow(16, 0.25) == 2
)?Thanks a lot, glad you enjoyed it :D
I haven't received any further feedback so I am going to mark this as resolved for now. If others believe that it's worth amending the kata so that property names can't be changed then I can do so. Alternatively I could provide instructions so that the user should change two and find another means of solving the issue for the other two? This would expand the scope of the kata but could be a good idea.
I used your solution to check the tests if you dont mind, Unnamed, and thanks again.
Bug in the tests, line 12.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution