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.
"A lot of these questions are made intentially vague or weirdly worded to increase difficulty and to make you think a little more". No, it's called bad English. We come here to test our ability to think programmatically, not to try and improve our ability to interpret poorly written text.
study on what self does, and how instances of classes work
there is only 1 object tested. example:
x = Arith("five")
print(x.add("seven"))
this should return "twelve"
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Yo PLEASE unlock that for Python 3. Took me long enough to find out why all my answers are changed to 0 out of nowhere when it worked fine on my PC.
Reason is that Python 2 handles the '/' operator different than Python 3
This comment is hidden because it contains spoiler information about the solution
Hey could I get the number n at which the error occurs? Currentely I cannot recreate the error on my machine. At some random numbers I get an error, example:
Hihger Values of n (From 1000000 up to 5000000)
1048447 should equal 1288849
Unfortunately it does not tell me what n was.
Running numbers through my code bigger than the ones given always gives me the right answer. I'm kinda hung up here. I'll leave my code in a reply to this comment.
I need a bit of a headstart here? I can't just use itertools.permutations, but neither can I write a self prolonging nested for loop.
Does anyone have a bit of advice for me?
This comment is hidden because it contains spoiler information about the solution
You're right, sorry. I am using Python.
Please specify the language you are using?
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Hi iphark. For this particular kata, research "lookahead assertion", "character set", and how the ^ (carat) and $ (dollar sign) work in regex. Hopefully this helped!
This comment is hidden because it contains spoiler information about the solution
Loading more items...