6 kyu

Investigator's holidays and hidden messages

123 of 127mauro-1
Description
Loading description...
Strings
Puzzles
  • Please sign in or sign up to leave a comment.
  • ahmet_popaj Avatar

    Great riddle to solve.

  • Ciprian Amza Avatar

    Wow, thanks for this! I enjoyed it.

  • Rud1 Avatar

    Nice Kata !

  • RealKenshiro Avatar

    Very funny and creative Kata.

    Don't bother pedant comments...

  • zLuki Avatar

    Great kata, loved it!

    But I had a solution which passed all static tests and I only failed random tests. It was nearly impossible to debug. Add smaller random tests or add some more fixed tests.

    Thanks for this nice puzzle :)

  • trashy_incel Avatar

    This comment has been hidden.

  • FArekkusu Avatar

    As pointed out below, with the current task design there's no reason to use OOP here. The Investigator class could be replaced with a single function taking a list of messages, and returning the hidden message. You should either redesign the task so that storing state between method calls is required, or just get rid of classes altogether.

  • natan Avatar

    There's an input of a list of strings. There's an output of a string. That's a function. What is the class doing?

    def investigate(postcards: [str]) -> str:
    

    You can do this with fibonacci too.

    class Fibonacci:
        def __init__(self):
            pass
        def readarg(self, x):
            pass
        def getanswer(self):
            pass
    

    If a class is to be used, then it's because a function doesn't do the job. Otherwise skip the extra wrapping.

  • rge123 Avatar

    woth --> with

    At first glance text --> At first glance the text

  • Blind4Basics Avatar

    Investigator almost discovered the message. Maybe a closer look at spaces...

    this isn't making any difference with the previous situation... :/

  • Fbasham Avatar

    Figuring out the spacing was a pain, but overall very enjoyable.

  • Blind4Basics Avatar

    hi,

    you either need "better" (as in either more explicit, or more of them) hints to find how to spot the spaces, or you need to show the expected result for the second part: knowing that I'm too short or too far isn't helpfull at all... (especially when the messages have no meaning)

  • FArekkusu Avatar

    This comment has been hidden.