Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only not deleted user 17216

For challenges related to Morse code.

1 vote

.-...--..---.-...--..... the red-nosed reindeer

Python 3, 381 375 372 bytes Just like Seb's answer and ScoopGracie's answer, gracefully takes the Morse code representation and any of the three libraries as input, blithely ignores them and gives you … This standalone program, written in the ISO 8859-1 codepage, ignores the Morse code representation and library taken as command-line parameters, and prints the output to stdout: #coding=L1 i=int.from_bytes …
Deadcode's user avatar
  • 11.9k
2 votes

.-...--..---.-...--..... the red-nosed reindeer

Pyth, 142 bytesSBCS Like many of the other answers, and my Python answer, encodes the lengths of the 474 Morse codewords into 119 bytes using base 4. … Explanation of the code Kcwd The Morse code version of the song has already been read from input implicitly, as z = input(). Read the Morse code look-up table from input. …
Deadcode's user avatar
  • 11.9k
2 votes

.-...--..---.-...--..... the red-nosed reindeer

Like many of the other answers, encodes the lengths of the 474 Morse codewords into 119 bytes using base 4. … The Morse stage of the decoding is based on steviestickman's answer, with some further golfing. …
Deadcode's user avatar
  • 11.9k
9 votes

.-...--..---.-...--..... the red-nosed reindeer

Doesn't use the challenge's Morse code library. … Code M←∊∘morse¨D⋄C←∊(7⍴51)⊤246⊥5 17⍴¯7+⎕AV⍳'k%aÏ⍵FþfÅ⍵ìÆ⌶á≥å3¶cÒ⍺\ujü─⍳%S⊣ì⍙ÒÛÙ3Ùp`Ø,hÇñ⊂┴Ö⍪l∪⍒i1⍵Í:-îà⌽ì≥3€ã(⍝S]ÁGXræ∇O7Uæî' ∊∘morse¨D - compose the two functions ∊ (Enlist - flatten / join) and morse
Deadcode's user avatar
  • 11.9k
3 votes

.-...--..---.-...--..... the red-nosed reindeer

With a longer Morse code message this algorithm would win by a significantly larger margin. Kcwd=bmsm@KxGkdTVjC"êêVÞøA?cUqg´§¼F¦e~zEºÊú[!Áw¶uQå´çý½Ê*¤jrkIæwÐó*S.(4áëÌöÅ×¹ñp.ÑQÐgBê "51=>zl@bJ@sxRb_. … Read the Morse code look-up table from input. Equivalent to K = input().split(' '). =bmsm@KxGkdT Translate Jelly's dictionary into Morse code, with the inter-letter gaps deleted. …
Deadcode's user avatar
  • 11.9k