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.
This comment is hidden because it contains spoiler information about the solution
Not sure if I just don't know how Codewars works, but looks like you have no solution to show.
Would be happy to take a look. Mine isn't as elegant as the top 2 answers (I didn't use Object classes or anything), but I think I've got my head wrapped around some good ways to do this kata.
It's definitely more challenging & time consuming than any other <6 Kyu> I've done before. Several sub problems to solve.
I would agree with it being harder than 7kyu.
thanks guys, I figured it out!
It could be that you are not making sure you are giving the lexicographical solution. This means if the word being tested is billboardsa then the output should be 'a' even though 'b' appears first in the word.
this was defiantly a challange for me but I surely learned something from it. In my opinion it was harder than average 7kyu katas.
On the left we check whether the input is
0
. On the right we calculatedigit_sum - 1
and with the second modulo operator check whether the result is odd (since without- 1
the result would have been even).can someone please kindly explain what's going on here?
quite an intresting kata. I thought it was too hard when I was trying to solve it. but when I saw other people solutions I figured I made it hard for myself. and that's what I really love about this site. you exhaust your brain on one solution and when it finally works you see lots of better, easier, more elegant solutions and you instantly learn something.
Oh, didn't think about it :) Ty for advice. Will use it in my future.
Why not solve it online? :P You can simply print the dict -
print(MORSE_CODE)
- and copy it from output.Great story, thank you!
Can you please next time post MORSE_CODE dict in description, it's too hard to solve this kata offline.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Loading more items...