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.
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.
I agree!!
This Is the Way
Nice one. Harder than it looks. For anyone who is frustrated with this kata and needs a starting point, search about constraint satisfaction.
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 ...
This comment is hidden because it contains spoiler information about the solution
Fred is Mr. Wrong by process of elimination. Its either Fred is a liar, or there are multiple liars
This comment is hidden because it contains spoiler information about the solution
I have seen 4 kyu katas way easier than this.
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?
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! π
Once it clicks, this kata is extremly easy
After hours of trying to optimize my algo to pass the "timeout" error, I came to the conclusion that Javascript unshift sucks