Ad
  • Custom User Avatar
  • Custom User Avatar

    Groovy translation that also orders the list of how to access the dictionary/hashmap/etc. in each language alphabetically

  • Custom User Avatar

    In Go 1.20, one test fails but there doesnt appear to be any difference between the expected and my output. Additionally, my code prints the input text for debugging, and when I copy that input and test manually it passes. Is this an isssue with the kata or am I missing something?

    Long messages handling case fails:

    Expected
        <string>: THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG
    to equal
        <string>: THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG.
    

    However when tested manually it passes without issue.

    var _ = Describe("DecodeMorse", func() {
      It("Example from description", func() {
        Expect(DecodeMorse(DecodeBits("1110001010101000100000001110111010111000101011100010100011101011101000111010111000000011101010100010111010001110111011100010111011100011101000000010101110100011101110111000111010101110000000101110111011100010101110001110111000101110111010001010100000001110111011100010101011100010001011101000000011100010101010001000000010111010100010111000111011101010001110101110111000000011101010001110111011100011101110100010111010111010111"))).To(Equal("THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG"))
      })
    })
    
  • Custom User Avatar

    In Python, sample test has the bits wrong, and not in the same format as announced by either the kata text nor as the tests of the attempt.

  • Custom User Avatar

    Could you specify what's the relation between patterns and special characters?, because your tests don't seem to use the characters shown in the International Morse code binary search tree as shown on the link you provided.

  • Custom User Avatar

    Could anyone hint me how to find the transmission rate?

  • Custom User Avatar

    The preloaded morse code dictionary (in golang) does not include punctuation used in the test cases.

  • Custom User Avatar

    No random tests in Java

  • Custom User Avatar

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

  • Custom User Avatar

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

  • Custom User Avatar

    "111000111" should be (TT) why (I)

    111= - ;000 = pause between char and char ;111 = -;

    sum is (- -) '-' : 'T'

    or 111 = 1 and 000 =0 it will be

    1 = . ; 0 = pause between Dash or Dot 1 = . ;

    sum is (..) '..' : 'I'

    How can I know his intention?

  • Custom User Avatar

    Kinda got everything done, but I don't understand how to do a standard string check without lengthening. I'm stumped.

  • Custom User Avatar

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

  • Custom User Avatar

    The author didn't describe well enough the timings he told in the previous Kata of the series.
    I was disappointed until I solved that Kata.

    Explanation for those users, who as me, jumped onto 3rd Kata right away:  
    There are 3 separate timings: short, middle, and long.  
    All 3 for dots and short and middle for dashes.  
    Length of short and middle timings (almost) similar for dots and dashes.
    I hope this description helped someone.
    
  • Custom User Avatar

    In Haskell I get the following error when attempting:

    expected: "SOS! THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG."
    but got: "?! THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG. "

    Weirdly this test goes through!
    decodeMorse "... --- ... -.-.-- - .... . --.- ..- .. -.-. -.- -... .-. --- .-- -. ..-. --- -..- .--- ..- -- .--. ... --- ...- . .-. - .... . .-.. .- --.. -.-- -.. --- --. .-.-.-" shouldBe "SOS! THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG."

  • Loading more items...