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.
Approved by someone
This solution works only if in input String every opening parenthesis has a pair - closing parenthesis. If it's not, you receive stackoverflow error.
This works very well to solve the challenge, but on the IDE (IntelliJ) occurs an exception > .PatternSyntaxException: Stack overflow during pattern compilation.
Could someone explain to me? Ty
Java translation published above by someone
Probably it takes too much time (Stackoverflowerror) to reach a solution. Because in the random tests you can obtain a string of more than 5 letters inside the input (a lot of permutations to check).
Similarly:
The description says
there is only one solution for each encryption/decryption
, which is violated in the random tests.The "decrypted" result depends on the order of substitution (which is unknown), so the entire kata's premise is flawed.
Hi, just removed the function from the python translation of this kata. Thank you for pointing that out, sorry, took a short break so didn't notice it until now.
This comment is hidden because it contains spoiler information about the solution
Javascript Translation
Error with your code, the input is a string of multiple characters not just one.
Not a suggestion.
Morse code isn't prefix safe.
fixed
Isn't that the (almost) same as morse code decoding?
Loading more items...