Ad
  • Custom User Avatar

    Have you checked all the edge cases? Remember, rank 0 is not a rank.

  • Default User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Default User Avatar

    Ok thanks, that's what I was getting confused about. I get it now.

  • Default User Avatar

    The original text of the extract is somewhere in a_scandal_in_bohemia (not always at beginning).

  • Custom User Avatar

    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.

  • Default User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    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)

  • Default User Avatar

    try printing the input

  • Default User Avatar

    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.

  • Default User Avatar

    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.

  • Default User Avatar

    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.

  • Custom User Avatar

    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?

  • Default User Avatar

    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.

  • Default User Avatar

    I think i understand it now. Thanks

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Loading more items...