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.
Have you checked all the edge cases? Remember, rank 0 is not a rank.
This comment is hidden because it contains spoiler information about the solution
Ok thanks, that's what I was getting confused about. I get it now.
The original text of the extract is somewhere in a_scandal_in_bohemia (not always at beginning).
a_scandal_in_bohemia is the full text in english. It is preloaded.
extract
is a random extract from a_scandal_in_bohemia but it has been encrypted.Getting the original text for the second line isn't trivial: it is a big part of the puzzle. Keep thinking! :)
note: the extract in the sample tests is 100% of the text. The extracts in the full tests are c.80% of the text starting at different points to make things harder.
This comment is hidden because it contains spoiler information about the solution
To print the whole text:
print(a_scandal_in_bohenia)
.To print the random extract:
print(extract)
(or whatever is the argument of your function)try printing the input
How can i access the random text generated when attempting?? or can the question be solved without any need of that?? Please do not tell me the solution or any spoiler.
I guess the short answer is that your solution doesn't work - some random test cases are generated and you don't pass all of them, but because they're generated randomly, you don't necessarily always fail on the same exact test case.
No, not yet. I mean to say that each time I attempt with same code I get different number for test cases passed out of 103. This is first time I am coming across this type of problem, I have no idea what to do.
I just ran my code. There are 103 test cases - same number every time. Does your code actually pass all tests and have you submitted?
I think there is some problem is this kata for Python 3. Sometimes it shows 60 test cases passed, sometimes 50 and it keeps changing every time I run my code(without changing my code). Please tell me if this is problem with my code or it's related to kata or it's test cases.
I think i understand it now. Thanks
This comment is hidden because it contains spoiler information about the solution
Loading more items...