Ad
  • Custom User Avatar

    In the real world, I believe a human could figure it out based on the permutations that make up a more or less valid message compared to the others. For example, if my cat learned Morse code but wasn't great at timing, the message "FEED ME" would be more likely than "FE ED ME" due to its simplicity. However, the code itself cannot understand the context. And my cat is almost 18, cut him some slack.

    If we were guaranteed that all words belonged to a provided dictionary, it might be possible to solve this issue. However, as far as I can tell, we're stuck hoping that we have made the same assumptions as the test authors. Alternatively, we could dump their tests into exception messages to see what they're feeding and start special-handling the ambiguity as we go. It's impossible to solve an ambiguous problem unambiguously, and I'm not seeing that this one is fully defined.

    Maybe that's just me and I'm just not clever enough, which is a very real possibility too.

  • Default User Avatar
  • Custom User Avatar

    This Is the Way

  • Custom User Avatar
  • Custom User Avatar

    Nice one. Harder than it looks. For anyone who is frustrated with this kata and needs a starting point, search about constraint satisfaction.

  • Custom User Avatar

    This Kata had me confused for a moment. Being part of the "Path Finder" series, I called the heavy artillery (simulating the monster, Dijkstra's algorithm, other stuff). Little did I know ...

  • Custom User Avatar

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

  • Custom User Avatar

    Fred is Mr. Wrong by process of elimination. Its either Fred is a liar, or there are multiple liars

    Please note that everyone has at least one sentence and only one people is Mr.Wrong

  • Default User Avatar

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

  • Custom User Avatar

    I have seen 4 kyu katas way easier than this.

  • Custom User Avatar

    The logic in this kata is not consistent at ALL. At short messages, 100001 is EE but 10000001 is E E? How would an Algorithm, or even a Human for that matter, know that 0000 is '' and 000000 ' ' without any other point of reference?

  • Custom User Avatar

    I won't go into too much detail on how long this Kata took me, but I now have a beard. This Kata completely caught me off guard, I thought I'd be implementing A* or something given the series, thoroughly enjoyed though! πŸ‘

  • Custom User Avatar

    Once it clicks, this kata is extremly easy

  • Custom User Avatar

    After hours of trying to optimize my algo to pass the "timeout" error, I came to the conclusion that Javascript unshift sucks