• Sign Up
    Time to claim your honor
  • Training
  • Practice
    Complete challenging Kata to earn honor and ranks. Re-train to hone technique
  • Freestyle Sparring
    Take turns remixing and refactoring others code through Kumite
  • Community
  • Leaderboards
    Achieve honor and move up the global leaderboards
  • Chat
    Join our Discord server and chat with your fellow code warriors
  • Discussions
    View our Github Discussions board to discuss general Codewars topics
  • About
  • Docs
    Learn about all of the different aspects of Codewars
  • Blog
    Read the latest news from Codewars and the community
  • Log In
  • Sign Up
loukas Avatar
Name:Loukas Mouzos
Clan:WorthIT
Skills:java, php, javascript, python, c, c++, css
Member Since:Jun 2016
Last Seen:Sep 2020
Profiles:
Following:1
Followers:1
Allies:1
View Profile Badges
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations (3)
  • Replies
  • Authored
  • Needs Resolution
  • Custom User Avatar
    • MobulaKuhlii
    • resolved an issue on "Decode the Morse code, advanced" kata
    • 5 years ago

    .

  • Custom User Avatar
    • Chrono79
    • commented on "Decode the Morse code, advanced" kata
    • 5 years ago

    Kotlin initial code:

    fun decodeBits(bits: String): String {
        return "."
    }
    
    fun decodeMorse(code: String): String {
        return MORSE_CODE[it] ?: ""
    }
    

    It's MORSE_CODE, NOT MorseCode

  • Custom User Avatar
    • loukas
    • created an issue for "Decode the Morse code, advanced" kata
    • 5 years ago

    I am trying this Kata in Kotlin but when I run the sample and the test suite, I get the map MorseCode does not reference to anything. Seems to be not loaded / there.

    src/main/kotlin/solution.kt:52:24: error: unresolved reference: MorseCode
                     .map{ MorseCode[it] ?: "" }
                           ^
    
  • © 2025 Codewars
  • About
  • API
  • Blog
  • Privacy
  • Terms
  • Code of Conduct
  • Contact

Confirm

  • Cancel
  • Confirm

Collect: undefined

Loading collection data...