• hooollyy!!! hahahaha

  • Please do not pollute discourse pages this way. The solutions need to be submitted in the kata, they appear in the solutions tab, and that's it.

    The discourse pages aim to provide help or report issues.

  • This comment is hidden because it contains spoiler information about the solution

  • Check for leading or trailing spaces in morse_code !

  • Hello, I am facing a weird problem here. I was working on this problem and at one point clicked on Attempt to check the solution, and got an error in one of the test cases, which is ok. But then I got the message that comes up when you successfully complete the problem and the Attempt button changed to Submit. I felt something was off, so I reloaded the page. But since then i am getting this as my Sample Test:

    qlt1FAj+x924LSJR1QBq8C8B5qt/8lgFkXQhpA2Opzb9P3pcUGx099loQDxK
    lkQWzx0g9Bj0hl8VN7Wdi/RKnHO8UonoLVoXewNeYH3H0j7kVSUwLPjgCz9l
    T/8DJ8Rxjs7UDy03X5uFDu8Cbh2PJiAroQi/jGq6Elqupn0G13QUnl7MZSsu
    4Kv+s/GBCCEQJs2FPuezEPEKgj6QEYXY94j9qChl3UQm5IfowXmRorWiV9Pt
    H1k2ntu/Hsd1ozB7lPeKdhGQgNVnHy78NvY0vFQEzDsikQge4YmOMrfE18sc
    V9LGSKqMx4/G9p1HpaeyK+sXZh9kvND+sfdZ2LZfRn6XgqecZDzsu9iKjEf5
    U4903NfymIpdWC/fybTTvUSxH4iBEp9XWYjR9vQGVZiAxM5csADj+wIHg2VW
    YHy6lO0sJD35lzEC8XF+ZTNDCtG7Ymik9B9okf0m5R7/NrLZqSuZxqL+ussQ
    OFyiBKOtCKC62pJQQ+grgTOYe5pGvrPFDJC59+X6RXM7bVIimaCumKDa6pAw
    ltv7he2liWc3tgETdIJABBhs/hCBrJTpljTJ9Ol5KMroZMkLBF6U/l7FfvNm
    y/yeX3fmmdkwFQe2NC/lJyfJj1scGagZCc9T39mHhc7qAPmrNxZ5+bUofIrW
    IG6AJBAQyAPs9CyGJKwrkrotTEkP9Ryf0VDsdZodytPD4zZvzQDVZDUBSpzR
    9tYtggqHH6xSwmWSxzevK5kpRIy5PyIx3UOwA2bNh3SoBN4KKYIdkDLuvnv5
    UV5v9exvwutJ2XC59xhQDkh70DkxP0452qgCTvBwowWEmZK4S0LinQMORD3U
    8jAhwca/MQKe64LE9TaCktIAjTdhj88W59YRYDm/JLoabSFCcRu04xSYyk3o
    ynMghS8Db+ALObw+rEYAuKF43PUu0y6VooFvYaFfyV+wPLcDOFaKZYSitRhE
    FtO5bcEEcE+E+HHfNxX0bg1JiKqkrWGXTmnKZ1t3O25nWAy7gSPD3PI0iQyZ
    NfCAjvlnRBFvHQUCTSAQUYOGyiTXvs7OEizFvWKN+WScbpiWaQ77FzkQ9NOr
    eATBwWocV+oKoKR/447JpuUlaRCUC8sJt0tx/1CXbl6SPF9chXP4da3GShPZ
    +Xn9T+cUTThSVJIEEJ7u1zAloDLaecNZzva1cbpk3DkQ2kND0kDRnjB9Tr2X
    HD7O3cEui3PmIXqQatZV94jkauqRs4kb3SFC0wSl38v9voQJE4Y+feQN6AIg
    p7Z+LtGaIw1YwrNr/6L2X7iRf4LRBaZ/HQWIaHrqYHMGvlXDMyltuDe84I65
    meXucIfcYljbsNqb/Lih34ZZ6Q7d9eIEwDFjFPDoblv/g4oiaxE4mQ/pH8QU
    pZcET4vVS+crErBVBm38pnFxEjGx1DF8fDmCKXWIUXFhVWJpxfQriboYd9dk
    XG8N6gC3nCEkceCa9VXaVE7dNAQGgWywmkVuCi5JmX+JPphNJVjSy9ouU9zt
    spRXUbwnlCuV/Oq3g+sUDD/bv3hgggVUjdKhKaM414CYYR84dT37BEH0s1hs
    YsiHurgfrm6TZNykNnlf+4SsCa20XMfosHqBIe2Mn53Ozc3wBKagY9FnoSG9
    UXaUrlDvqCGg1FgPsQ8kwiUFWZRkJE00e7UBo0b+ifER3dB9Kwih5Le6/o61
    Kxz/5+fd2i9nDe9bcIlvdQ6foQk4SW38B4GJ1OmKkoXsa1HG7mWL1yI45JPl
    ne65vAFeeYQl4s6UxSisdrpx12FzeN+5XiRmcd88Ivv64LuWgkckcq0qlJVS
    BFbaNS/FufgwzMWnpqwHMuvQ+Znw4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UJcHuGToefaeMGkrvz1A5acHC5SK5Eameb12TFdTddAKmCtpfCit3Xh2fk8A
    ozCPyMn4w719sUkC6TY8jfxwcUMDNnlov+Hj2CuqAKYO01AslMjU3SSDi/yN
    lTGb9M9HaUWHK+X9jMwkyr5pOPgJBATa+5M7RVePrls0l/p5gAIcNPWR3w4o
    WSypcL7maseciHmnknABP7MKSxwkgHIMYba8auyH9g3ByDr37etSj5HFjx7B
    QQW1WyWbFs3pHsLtuGPOhrOA4jSTCQDXh2HOcUjVCK44OaSpF+Xi8O9ditPo
    awPC6neIkzoV/bMW7mmhL//IsImTMbaqR+BTVocVJPfuhsVWuMV3/g+a81CK
    OAM2jSOJT9ZgQlg0/MLPxZgjrCAHri8YQOPUnJvcsR9YYuo8VpghTpxYEBID
    5GA66FIe7OxaY17+rIA=
    --QYJl6OImA8w80CoBbD22yA==--u
    
    

    Attempt still seems to work as expected though. Also when I tried to go back to the problem page again, I am getting the Train Again option instead of Train. But when I check in the Solutions tab in my profile, it shows this problem under Unfinished.

    I quite confused about what's happening here, so I thought to share it here. Seems like some glitch in the website.

  • For Python it is MORSE_CODE['.']

  • Hi, i have a problem, the description says:
    "The Morse code table is preloaded for you" but it seems that morseCodes is not preloaded.
    I am trying in Python.

    error:
    decode += morseCodes(k)
    NameError: name 'morseCodes' is not defined

  • I pass all tests but exit code:1. Any ideas why does this happen?

  • But 111 i can determine

    No you can't, how do you know if the time unit is 1 or 3? It can be either, so, it's a dot.

  • Yep, im understand it, so, for example: 11111 it's dot, cuz i cant determine it dot or dash. But 111 i can determine, so why it's dot? Or this sequance should be inside zeros: 0000111000000?

  • However, the standard does not specify how long that "time unit" is.

    Also if you have trouble discerning if the particular sequence of 1's is a dot or a dash, assume it's a dot.

  • This comment is hidden because it contains spoiler information about the solution

  • I mean, the test is actually "...---..." ("SOS") with no blank space in between whatsoever. If I, a human, got a message like that, I would interpret it as "3B", "S:" or "V7", much less a computer.

  • You should be able to type MorseCode.Get(".--") within your code to access the code dictionary. Hope that helps!

  • Jenny can thank us later! lol

  • Loading more items...