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 not originally a Python kata ( it's maybe easier in Haskell ). Also, rank inflation.
That said, I can't fix it for you. Only an admin can, not even the person who approved it.
What's the value of n there?
Sure, but a bank account number can vary in length from bank to bank, e.g. in the US it can be "...between eight and 12 digits...". The logic needed for that variation should work with wider ranges too. I don't think simply varying the length puts this beyond 6 kyu.
Not true.
So you're saying all those people randomly passed the kata?
what is unclear, then? The idea is that if you just do what you're supposed to do, you don't even have to care about those restrictions (except the one for empty list)
edit: yeah, I can down vote you too, you know?
How did you get the option for python3? It only gives me 2.7 as an option
In Python: Exception is raised by "raise 'Error'"
Note that you should throw it when guessing with zero lives, not as soon as the lives is ran out. I.e. you can try to guess with zero lives but the error is expected to be raised no matter if the guess right or not.
This one one of those, for me, where I struggled and sweated over a convoluted solution, and the top answer was some simple, obvious-in-retrospect one-liner.
And the return to 1 should be True using this method
Clojure was not the original language maybe? But I have to agree, this can be hard for newbies in any language.
Added sample tests in JS
totally agree! The prime number factoring is easy, the nitpicky 'edge' cases are silly (why return [] for 'a' ?????? ! and [1] for 1 - when 1 is not a prime number). The error handling is more difficult than the stated prime number problem.
I got totally lost trying to handle what was, I assume, it was hard to tell what the input was, complex numbers. Frustrating waste of time. There are other prime number factoring katas here that make much more sense.
------- added later ....
Well, my bad on the complex numbers. It was me generating them. But, even with the problem solved, the error handling involved in producing a solution was not fun and it's a shame because the prime number related bits of this kata are nicely presented.
Seems like it's working, just tested it
Description says:
146 is not the biggest possible (less than 331)