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.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
I'm an engineer and I can't understand the math notation. Neither I nor any of my coworkers have seen two terms above one another that isn't a fraction. So there's that
Is init the starting value or the starting point of the reduction? For example, if init = a[2], do I start reducing a[0] against the a[2] value or do I start reducing from a[2]?
I'm a little stuck on this one. I can get the first 3 parts, but my max divisor is wrong, even though I'm dividing the same product by the same minimum divisor, which mathematically should get me the max divisor?
For example:
[640210194275124949, 53, 7, 91458599182160704] should equal [640210194275124949, 53, 7, 91458599182160707]
My own IDE returns 91458599182160704 as the max divisor, so I'm not totally sure what's going on
Found my bug, thanks! Also, Warlock and Wizard OP
I'm really stuck on this. For the Python test cases, why does it skip the peasant in test case 5? It goes through the array previous array left to right, then it should jump down to the next array from right to left, so why does the peasant (last in the array) not lose any units? The arrays in order are [none, none, sprite, wolf, dwarf] then [titan, wolf, none, none, peasant], with pseasant being under dwarf. I hate asking for help but I don't get why it skips the peasants.
It looks like it does the same thing in test case 7? The coordinate is 0,0 but the whole first row has resistance of 100, so it goes to the next row and starts at the left instead of at the right (hitting the titans before the sprites even though the sprites are directly below the last monster in the previous row)
loved it
the only part of the problem I don't understand is the incredibly vague "eventually," writiing a loop that endlessly checks if the value reduces is easy, but I could have a while loop that literally never ends
So after 20 I can assume it will not reach 1? Thank you
am I missing something in the description? How do I know if a prime will "eventually" reduce to 1?
It does have return.
I'm having some issues with this Kata. I have a solution that works in Python 3 on my PyCharm and 2 other emulators, but not on the actual Kata. I get the correct answer on my own but here it seems to default to returning None
No help but I'm getting the same problem
If you're a beginner then I can't type cause I'm on 3 hours and still not close
Loading more items...