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.
OPs attempted language is Ruby.
Perfect, I am glad for you!
I have solved the Kata and I liked it. Everything is ok. Thank you!
You are welcome! Tell me if you succedd.
I think I know, why my code doesn't work properly. The decode(encodeStr()) gives different results. Sorry for disturbing you :)
This comment is hidden because it contains spoiler information about the solution
Is that your print of input in "encode" function or "decode" function?
I have the same problem with test8. The input List is:
[ibb ?z?~ ???~z} ?? }?
z, ?? ??}? ???? ~~?; m?, z} ????? {|z??~ ??? ?, ?~z} ?? ?? }?z??. p???, ?z? [ rz?? (1865-1939)]But I dont understand how it can be decoded to expected String. The ????? can't be converted to expected word, because every letters are same. It looks like symbol '?' mean some problem with ASCII?
Moreover the 'ibb' has the 'b' and it's lower case, but expected 'I' which is upper case.
You don't need second reverse as you end up using reduce :)
In this, to type digit 7, one needs to press 5 times. This test is not present! I can hardcode presses for [2-9] as 4 and still it works! Please add the testcase having 7 or 9 digit in string.
This comment is hidden because it contains spoiler information about the solution
Does this needs to be sequential replacement? Damn.
This comment is hidden because it contains spoiler information about the solution
Ah.. Done it :)
I am so close... But the unary negative and subtraction is making me still fail... Spent almost three hours till now. Now I need some break before trying again :)
Loading more items...