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.
It's a repeat.
Then it'll become more similar to this other kata: https://www.codewars.com/kata/power/train/javascript
This comment is hidden because it contains spoiler information about the solution
Definitely a repeat of another kata.
I removed the tests with y which are decimals,Thanks!
No problem! So now you can either take out the tests with decimals, or remove the instruction that says only integers (: just so that the instructions are not misleading.
Nice! Thanks a lot!!!
haha one thing you could do is at the top of your tests, put this:
That way, if Math.pow is called, it'll run your custom implementation of it that just automatically fails.
I use it to know if the Solution uses Math.pow(), I don't really know how to do it otherwise haha
"Obs: x and y will be integers, so DON'T take fractions into consideration"
There is a test with y = 0.5, so either change this test or remove that statement from the instructions (:
Very good kata, awesome work.
L I T T L E G E N I U S