r/dailyprogrammer • u/Cosmologicon 2 3 • Aug 05 '19
[2019-08-05] Challenge #380 [Easy] Smooshed Morse Code 1
For the purpose of this challenge, Morse code represents every letter as a sequence of 1-4 characters, each of which is either . (dot) or - (dash). The code for the letter a is .-, for b is -..., etc. The codes for each letter a through z are:
.- -... -.-. -.. . ..-. --. .... .. .--- -.- .-.. -- -. --- .--. --.- .-. ... - ..- ...- .-- -..- -.-- --..Normally, you would indicate where one letter ends and the next begins, for instance with a space between the letters' codes, but for this challenge, just smoosh all the coded letters together into a single string consisting of only dashes and dots.
Examples
smorse("sos") => "...---..."
smorse("daily") => "-...-...-..-.--"
smorse("programmer") => ".--..-.-----..-..-----..-."
smorse("bits") => "-.....-..."
smorse("three") => "-.....-..."An obvious problem with this system is that decoding is ambiguous. For instance, both bits and three encode to the same string, so you can't tell which one you would decode to without more information.
Optional bonus challenges
For these challenges, use the enable1 word list. It contains 172,823 words. If you encode them all, you would get a total of 2,499,157 dots and 1,565,081 dashes.
- The sequence
-...-....-.--.is the code for four different words (needing,nervate,niding,tiling). Find the only sequence that's the code for 13 different words. autotomousencodes to.-..--------------..-..., which has 14 dashes in a row. Find the only word that has 15 dashes in a row.- Call a word perfectly balanced if its code has the same number of dots as dashes.
counterdemonstrationsis one of two 21-letter words that's perfectly balanced. Find the other one. protectorateis 12 letters long and encodes to.--..-.----.-.-.----.-..--., which is a palindrome (i.e. the string is the same when reversed). Find the only 13-letter word that encodes to a palindrome.--.---.---.--is one of five 13-character sequences that does not appear in the encoding of any word. Find the other four.
Thanks to u/Separate_Memory for inspiring this challenge on r/dailyprogrammer_ideas!
2
u/[deleted] Aug 14 '19 edited Aug 14 '19
For bonus 5, can someone tell what the eff I'm doing wrong?
Here's my general algorithm:
Is there something obvious that I'm missing here?
14
u/vlads_ Aug 06 '19 edited Aug 06 '19
x86_64 assembly for Linux. GNU assembler. No C library. No bonuses.
Writes to stdout a copy of stdin replacing all bytes representing ascii alphanumeric characters with their morse code equivalents.
usage:
5
u/skeeto -9 8 Aug 05 '19 edited Aug 05 '19
C for bonus 1 since that one's the most interesting. Interesting feature: I packed the morse code table for a–z into a short string.
5
u/kopo222 Aug 30 '19 edited Aug 30 '19
Python 3.7
Examples 1 - 4 and I wanted to see what words are palindromes in english and morse so I did that too. I kinda wend nuts with list comprehensions
Runs in ~0.9 seconds
Results
5
u/crippledpig Oct 09 '19
Python 3
4
u/marto642 Aug 07 '19 edited Aug 07 '19
Java SE 8. (1.8.0_51-b16)
Just the method converting normal words to sMorse Code. First time posting, feedback is appreciated.
4
u/CrayZT Aug 18 '19
C++ Bonus 5
So I'm pretty new to this (first post here, just found this subreddit a couple days ago, it's awesome). My level of knowledge is pretty limited to the basics of C++ programming without much in the libraries, so I'm still learning. I did learn how to use maps in this exercise, which was great!
I've only done something with trees and recursive function once before, so this problem seemed like a good chance to practice. I decided to load the words into a tree. Branches from the tree were either dots or dashes, and at each node contained a vector of words whose sequence was the path from root to node of dots and dashes. This helped immensely for the 15 consecutive dashes problem.
This was the node:
My code is large, almost 600 lines, so I'm not going to post all that here, just Bonus 5.
For Bonus 5, I used the tree to find unused sequences (any pointer within 13 steps from root that were NULL were unused) and made a vector of strings of these. This was about 1759 different strings. From there, I searched the encoded words to look for each substring. As u/rar_m mentioned, this was time consuming. I went from .8 sec for Bonus 1-4 and 2.8 sec for Bonus 5.
I improved the time by after identifying the 1759 strings in the first 13 characters, I used the tree again and just move one step down, looking it see if these sequences are used. I repeated this 4 times, and got the number of unused strings down to about 40. Then I went through the encoded list looking for these 40 strings to arrive at the final answer of the five strings. This allowed the process of Bonus 1-5 to be 1.7 seconds, saving over a second of time.
I tried to find the unused sequences using the tree only, but that took about 7 seconds. This would only be viable if the list of words was much bigger, since the tree method depends on the overall length of the sequence, while using the word list depends on the size of the word list.
Below is a snippet of code for bonus5 only. It's long and confusing, but would like some feedback if you got it. The code relies heavily on trees and recursion. Again, I'm learning, so fire away.
4
u/machinematrix Aug 23 '19
C++, all bonuses. Redirect stdin to enable1.txt.
4
u/almanzobean Sep 15 '19 edited Sep 15 '19
Tried to do a random programming challenge against my bf in a language neither of us knew. I present to you ... this challenge but in RUBY lol
3
u/ninja_tokumei Aug 09 '19 edited Aug 09 '19
Rust - All bonuses
Output with times of each part below its answer (for reference, these are single-threaded programs running on a Ryzen 5 2500U):
Since my focus was on high performance to be reused for the intermediate challenge, my code is very verbose, modular and fragmented across several files, not small and easy to read. Sorry! D: I'll spend some time documenting it and then post a GitHub link when it gets pushed for those of you who want to see it.
EDIT: Here's the full code, now published on GitHub :)
Instead of trying to cherry pick fragments to post here, I'll give a summary of my solution's algorithms:
3
u/[deleted] Aug 09 '19
Javascript
3
u/ribenaboy15 Aug 09 '19
F# with most bonuses – naïve approach Running times and results included.
3
u/bober007 Sep 25 '19
Python 3.7:
3
u/HAEC_EST_SPARTA Oct 20 '19
COBOL (GnuCOBOL):
3
u/dbispov Jan 03 '20 edited Jan 03 '20
Solution in Python 3.5.
I'd like to thank u/crippledpig for his solution as it inspired me. I tried to understand his code line by line and learned a lot by doing it, specially about some built-in Python functions. Still I would love feedback, specially approaches concerning bonus #5.
2
u/Gylergin Aug 05 '19
TI-Basic (no bonus):
2
u/[deleted] Aug 05 '19
C
2
u/hutsboR 3 0 Aug 05 '19 edited Aug 05 '19
Javascript:
2
u/lollordftw Aug 05 '19
Haskell
2
u/chunes 1 2 Aug 06 '19 edited Aug 06 '19
Factor, all bonuses
2
u/dailysit Aug 06 '19
Clojure
2
u/tomekanco Aug 06 '19 edited Aug 06 '19
Python 3.6, about 4 s for the whole lot.
2
u/Helmindarn Aug 07 '19 edited Aug 07 '19
Python 3.5 no bonuses
2
u/Burlski Aug 08 '19 edited Aug 08 '19
C++ Bonuses 1-4. Working on 5...
Any feedback very much appreciated.
Output:
2
u/tylercrompton Aug 08 '19
I was kinda lazy about the bonus problems. I could optimize them, but meh. It runs fast enough.
2
u/cheers- Aug 11 '19
Postgresql
Learning postgresql feedback is appreciated.
enable_one_dicttable.2
u/[deleted] Aug 14 '19
C
2
u/Untoasted_Craven Aug 17 '19
Java. I'm new to programming, advice is welcome!
2
u/[deleted] Aug 17 '19 edited Aug 17 '19
C++ All Bonuses
Run time is about 2 seconds because of challenge5, anyone got a better way than brute force would love to hear it :)
RESULTS
BUILD COMMAND
g++ -O3 -Wall -std=c++11 ./main.cpp -o bin
2
u/oojoanna00 Aug 19 '19 edited Aug 19 '19
Python 3
Did anyone tried to do the 5th with itertools.combinations_with_replacement ?
2
u/MorusHoriks Aug 19 '19 edited Aug 19 '19
JAVA
2
u/IGI111 Aug 20 '19
Typescript using Deno
Runs in 1.3s
2
u/Rentarun Aug 22 '19
PHP, all bonuses (runs in about 20s, because PHP is goddamn slow).
2
u/SunshineBiology Aug 23 '19 edited Aug 23 '19
First time writing Haskell :)
2
u/paxromana96 Sep 16 '19
I'm trying to learn Rust, especially how to use its many, many iterators. Here's my approach:
What's different about this approach, compared to many others I've seen in this thread, is that I decide which replacement to look up by computing the offset of each char from the letter 'a'.
This approach works, but assumes that we're using an encoding with all letters in a continuous block a-z, in the canonical order of English. This works because Rust uses UTF-8 for its strings.
2
u/Pixel_meister Sep 18 '19
Javascript
2
u/oaaees Sep 23 '19 edited Sep 23 '19
Javascript. Bonuses are in my Github
2
u/OneInchPunchMan Oct 03 '19
Python 3.7
2
u/pengpengpengpeng Oct 06 '19
Java:
2
u/wakingupat12 Oct 08 '19
C#:
2
u/philipptha Oct 11 '19
JAVA
A bit messy but runtime of about 2 seconds for all challenges..
Reddits Markdown didn't like my formatting so here's a link:
Gist Link
2
u/errorseven Nov 17 '19 edited Nov 17 '19
AutoHotkey - Challenges 1-4 - ran out of time for #5
Results:
2
u/paopaopao69 Nov 22 '19 edited Nov 22 '19
C#
2
u/like_my_likes Dec 05 '19
C#
New to C# so pls point out if any suggestion
Finished the basic Implementation and The first Bonus Challenge, will update if i could solve other bonus challenges.
2
u/HalfZebraHalfCobra Dec 12 '19
Python
First time posting here and I've been out of practice for a while. Cut some corners with this one and didnt bother mapping letters to the codes
import string
2
u/ANEPICLIE Dec 17 '19 edited Dec 17 '19
MATLAB. Not a great implementation, but it's what I could do.
2
u/Hellakittehs Dec 19 '19
Java
This is my first solution. Would love some tips on how to make it better.
2
u/doogyb Jan 17 '20
My python3 solution. Happy to take pointers or explain code.
Bonus 1
Bonus 2
Bonus 3
Bonus 4
Bonus 5
2
u/khalidkh Jan 19 '20
Python 3
My solution is to build a Morse code parsing tree, using a comprehensive list of English words. By following the path of the input text using each character, each time the list of words is not empty, you can consider any of these words & start again from the root for the next word in that possibility.
Output
List of English words: https://github.com/dwyl/english-words/blob/master/words_alpha.txt
Code
2
u/IcerOut Aug 05 '19
Python 3
Main Challenge (Codegolf-ish, 320 characters with tabs, but it seems reddit doesn't like them so I used spaces here)
Code:
Bonus 1: Code for 13 different words:
Answer:
Code:
Bonus 2: 15 dashes in a row:
Answer:
Code:
Bonus 3: perfectly balanced 21 letter word:
Answer:
Code:
Bonus 4: 13 letter morse palindrome:
Answer:
Code:
Bonus 5: 13 character sequences that do not appear in any words:
Answer:
Code:
I used time.time() to see how long this would take. It's definitely slow (since I'm bruteforcing it) but it only took 17 seconds overall, so not too bad, but there's definitely better methods for this one.
All in all, a pretty fun challenge. I'm definitely seeing why Python is nice for large datasets (and I'm guessing this would have been easier if I knew pandas)
2
u/DerpinDementia Aug 06 '19
Python 3.6 with Bonuses
Those are some pretty good bonuses. I'm sure I could've done the last bonus more efficiently and from scratch, but this is what I came up with at the time.
Challenge
Bonus 1
Bonus 2
Bonus 3
Bonus 4
Bonus 5
2
u/KevinTheGray Aug 06 '19
Dart, all bonuses. All brute forced
1
u/NihilistDandy Aug 05 '19 edited Aug 05 '19
Haskell (for the basic challenge):
I'll come back to the optionals later.
1
u/[deleted] Aug 05 '19 edited Aug 05 '19
F#, all bonuses
Output
1
u/gs44 1 0 Aug 05 '19
Julia, Bonus 1-5 (with some libraries)
1
u/Scroph 0 0 Aug 05 '19
D, brute forcing the first four bonuses :
1
u/[deleted] Aug 06 '19
C++ with the perfect balance bonus (I may take a shot at the others).
A quick and dirty implementation that maps letters with their Morse code counterparts. I'm still working on an easy way to convert letters to lowercase so that my code is robust enough to handle an input of 'counterdemonstration' or 'COUNTERDEMONSTRATION'.
Comments welcome.
1
u/raevnos Aug 06 '19 edited Aug 06 '19
perl, with all bonuses:
1
u/octolanceae Aug 06 '19
C++17 with Bonuses 1-4. Will do bonus 5 once I figure out an efficient method to do such.
I opted to generate all of the bonus data in one loop so I did not have to process the enable1.txt file more than once.
1
u/Separate_Memory Aug 06 '19
python 3 i did 1,2,3,4 maybe I will try to do the bonus 5 later
( btw the challange is allot better then what I posted :) )
pretty new to python any way I can improve my code are welcome. :)
1
u/Nevernessy Aug 06 '19
SWI PROLOG
Using DCGs to parse dictionary and generate morse sequences.
1
u/BRdoCAOS Aug 06 '19
Pyhon 3 - I'm Very Noob
1
u/uncle_gun Aug 06 '19
Visual Studio C#. Used a 2D String array in a class to hold the characters/values. I also did the enable 1 word list. Runs the function in about 5.1 seconds.
1
u/[deleted] Aug 06 '19 edited Aug 06 '19
Python 3.7.2 as always, criticism is welcome and encouraged
1
u/joshirk11166 Aug 07 '19
Python 3
I only solved bonus 1. I will try other afterwards.
1
u/hexidon Aug 07 '19
I didn't do any of the bonus challenges, but C is probably not the best language for those anyhow.
1
u/Godspiral 3 3 Aug 07 '19
in J, skips the enable lookup, and just returns valid decodings
1
u/coolStranger67 Aug 08 '19
Javascript
1
u/[deleted] Aug 11 '19
C#, all bonuses, completes in about 2.8 seconds.
1
u/[deleted] Aug 11 '19
Haskell no bonuses
1
u/Strosel Aug 12 '19
golang, all bonuses, executes in ~2.15s
1
u/PM_ME_YOUR_MASS Aug 13 '19
Swift 5.0.1
Output:
1
u/Moobx Aug 13 '19
Java
1
u/[deleted] Aug 13 '19
JavaScript
1
u/[deleted] Aug 14 '19 edited Aug 16 '19
Golang, every bonus in ~400ms
Fairly new to the language, any tips appreciated!
Output
1
u/VirtualMe64 Aug 17 '19
Python 3.7. I'm fairly new to Python so advice is welcome:
1
u/[deleted] Aug 17 '19 edited Aug 19 '19
Python 3, all challenges except 5
1
u/Snoop2069 Aug 26 '19
Python 3.6.6
1
u/karrash76 Aug 28 '19 edited Aug 29 '19
JAVA
Examples and bonuses 1 to 5
1
u/[deleted] Aug 29 '19 edited Aug 31 '19
PYTHON3
Main challenge
code:
1
u/djavaman Sep 04 '19
Scala all 5 questions
1
u/GuyWood13 Sep 09 '19
(my first) Pyton 3.7, just main challenge atm. Thoughts?
1
u/sup3rd1ck Sep 15 '19
Tried it with a language i've never used before, Ruby. This was the easiest and fastest way to do it. I know its ugly, but it works, it's fast, and it doesn't take a genius to figure out what the code is doing.
1
u/probablymy5thaccount Sep 17 '19
Python 3.7
1
u/[deleted] Sep 17 '19 edited Sep 17 '19
Java
1
u/ephemient Sep 18 '19 edited Apr 24 '24
This space intentionally left blank.
1
u/Derpballz Sep 18 '19
JavaScript
const morseAlph = Object.fromEntries([..."abcdefghijklmnopqrstuvwxyz"].map((letter, index=>[letter, ".- -... -.-. -.. . ..-. --. .... .. .--- -.- .-.. -- -. --- .--. --.- .-. ... - ..- ...- .-- -..- -.-- --..".split(" ")[index]]));)
const smorse = chars => Array.from(chars, char=>morseAlph[char].join(""))
1
u/karhu12 Sep 30 '19
Python 3.7
1
u/[deleted] Oct 10 '19
Haskell
1
u/Jerudo Oct 13 '19
Haskell
1
u/pauloadferraz Oct 18 '19
SAP - ABAP
1
u/sameer_sinha Nov 01 '19 edited Nov 02 '19
Scala
1
u/aroslab Nov 01 '19 edited Nov 01 '19
Haskell
1
u/Yuri_Kahn Nov 02 '19 edited Nov 02 '19
My first ever Haskell program.
Checking it:
1
u/mcduffuntimely Nov 05 '19
Python
First attempt at a daily, sorry for the messy comments
I've been trying to be a bit more "pythonic" while learning. no bonuses
1
u/[deleted] Nov 09 '19
Rust
I'm pretty new to rust so I've probably done something stupid here
1
u/__dict__ Nov 16 '19
Racket scheme. Didn't do any of those bonuses.
1
u/darknes1234 Dec 04 '19
Go
Just started learning Go so it way not be the most idiomatic solution.
1
u/normantas Dec 17 '19 edited Dec 17 '19
C# Solution with explanation, feel free to use
for the more complex parts, look into ASCII for understaing how I convert letters to morse
pastebin For colored code - making it easier to read
1
u/faZhift Dec 25 '19
PowerShell w/ all Bonuses
# define the character-to-morse mapping
$morseMap = @{
a = '.-'
b = '-...'
c = '-.-.'
d = '-..'
e = '.'
f = '..-.'
g = '--.'
h = '....'
i = '..'
j = '.---'
k = '-.-'
l = '.-..'
m = '--'
n = '-.'
o = '---'
p = '.--.'
q = '--.-'
r = '.-.'
s = '...'
t = '-'
u = '..-'
v = '...-'
w = '.--'
x = '-..-'
y = '-.--'
z = '--..'
}
function smorse( [char[]]$inputString ) {
$outString = ''
foreach( $letter in $inputString ) {
$outString += $morseMap["$letter"]
}
$outString
}
# test data
smorse('sos')
# challenges
# For these challenges, use the enable1 word list. It contains 172,823 words.
$wordList = Get-Content 'C:\Users\fazhi\Documents\WindowsPowerShell\Scripts\dailyprogrammer\enable1.txt'
$smorseResultsMap = @{}
foreach( $word in $wordList ) {
$smorseResultsMap.Add( $word, (smorse($word)) )
}
# If you encode them all, you would get a total of 2,499,157 dots and 1,565,081 dashes.
$dotCount = 0
$dashCount = 0
foreach( $value in ($smorseResultsMap.GetEnumerator() | Select-Object -Property Value) ) {
$dotCount += ($value.Value.Split('.')).count-1
$dashCount += ($value.Value.Split('-')).count-1
}
"Dot count is: "+ $dotCount # 2,499,157
"Dash count is: "+ $dashCount # 1,565,081
# The sequence -...-....-.--. is the code for four different words (needing, nervate, niding, tiling). Find the only sequence that's the code for 13 different words.
$smorseResultsMap.GetEnumerator() | Group-Object -Property Value -NoElement | Sort-Object -Property Count -Descending | Select-Object -First 50
$smorseResultsMap.GetEnumerator() | Where-Object { $_.Value -eq '-....--....' } # 13 -....--....
# autotomous encodes to .-..--------------..-..., which has 14 dashes in a row. Find the only word that has 15 dashes in a row.
$dashWords = $smorseResultsMap.GetEnumerator() | Where-Object { ($_.Value.Split('-')).count-1 -ge 15 }
$curCount = 0
foreach( $word in $dashWords ) {
$curWord = $word.Value.ToCharArray()
foreach( $letter in $curWord ) {
if ( $letter -eq '-' ) { $curCount++ } else { $curCount = 0 }
if( $curCount -ge 15 ) { $target = $word }
}
}
$target # bottommost -...---------------...-
# Call a word perfectly balanced if its code has the same number of dots as dashes. counterdemonstrations is one of two 21-letter words that's perfectly balanced. Find the other one.
$perfectWords = $smorseResultsMap.GetEnumerator() | Where-Object { ($_.Value.Split('-')).count-1 -eq ($_.Value.Split('.')).count-1 }
$perfectWords | Where-Object { $_.Key.length -eq 21 } # overcommercialization ---...-..-.-.-.-------..-.-.-....-.-....--...--..----.
# protectorate is 12 letters long and encodes to .--..-.----.-.-.----.-..--., which is a palindrome (i.e. the string is the same when reversed).
# Find the only 13-letter word that encodes to a palindrome.
$palindromeWords = $smorseResultsMap.GetEnumerator() | Where-Object { $_.Value -eq ( ([regex]::Matches($_.Value, '.', 'RightToLeft') | ForEach-Object {$_.value}) -join '' ) }
$palindromeWords | Where-Object { $_.Key.length -eq 13 } # intransigence ..-.-.-..--......--..-.-.-..
# --.---.---.-- is one of five 13-character sequences that does not appear in the encoding of any word. Find the other four.
$possibleEncodings = 0..8191 | ForEach-Object { [Convert]::ToString( $_, 2 ).PadLeft( 13, '0' ) } | ForEach-Object { $_.Replace( '0', '-' ).Replace( '1', '.' ) }
$searchEncodings = $smorseResultsMap.GetEnumerator() | Where-Object { $_.Value.length -ge 13 } | Select-Object Value
[System.Collections.ArrayList]$notUsedEncodings = @{}
$possibleEncodings | ForEach-Object { $usedEncodings.Add( $_ ) } | Out-Null
foreach( $possible in $possibleEncodings ) {
foreach( $search in $searchEncodings ) {
if( $search.Value.IndexOf("$possible") -ge 0 ) {
$notUsedEncodings.Remove("$possible")
break
}
}
}
<#
---.----.----
---.---.-----
---.---.---.-
--.---.------
--.---.---.--
#>
1
u/IBlewBarry Dec 29 '19
Java
import java.util.HashMap;
public class MorseCode {
public static void main(String[] args){
code("Yesterday, December 7, 1941, a date which will live in infamy. The United states was suddenly and deliberately attacked by the empire of japan.");
}
public static void code(String message){
HashMap<Character,String> encodedMessage = new HashMap<>();
encodedMessage.put('a',".-");
encodedMessage.put('b',"-...");
encodedMessage.put('c',"-.-.");
encodedMessage.put('d',"-..");
encodedMessage.put('e',".");
encodedMessage.put('f',"..-.");
encodedMessage.put('g',"--.");
encodedMessage.put('h',"....");
encodedMessage.put('i',"..");
encodedMessage.put('j',".---");
encodedMessage.put('k',"-.-");
encodedMessage.put('l',".-..");
encodedMessage.put('m',"--");
encodedMessage.put('n',"-.");
encodedMessage.put('o',"---");
encodedMessage.put('p',".--.");
encodedMessage.put('q',"--.-");
encodedMessage.put('r',".-.");
encodedMessage.put('s',"...");
encodedMessage.put('t',"-");
encodedMessage.put('u',"..-");
encodedMessage.put('v',"...-");
encodedMessage.put('w',".--");
encodedMessage.put('x',"-..-");
encodedMessage.put('y',"-.--");
encodedMessage.put('z',"--..");
String morse =" ";
message = message.toLowerCase().replaceAll("[ !@#$%^&*(),.\"1234567890]","");
for(char c: message.toCharArray()){
morse += encodedMessage.get(c);
}
System.out.println(morse);
}
}
1
u/OJ2002 Jan 03 '20
Python
1
u/tof63 Jan 09 '20
python3 solution:
1
u/Edwizzy102 Jan 14 '20
golang:
1
u/Keone_ShyGuy Jan 18 '20
Javascript, no bonus.
https://codepen.io/KeoneShyGuy/pen/LYEgbKo
1
u/dang3rous Jan 23 '20
**Python3
1
u/fairy8tail Jan 30 '20 edited Jan 30 '20
Solution in Go (golang)
1
u/interestedtom Nov 28 '21
I finally got the 5th bonus answer right!
slightly messy c++ code with cmake build scripts is at:
https://github.com/ThomasPDye/smorse
1
u/GooMoonRyongg Aug 05 '19
Python
Don't have time rn, I will edit when I (If I) finish all.
1
u/sactage Aug 05 '19
Ruby! I'll add bonus 5 as soon as I can figure it out.
1
u/Gprime5 Aug 05 '19 edited Aug 06 '19
Python 3.7 all bonuses
Output
1
u/duquesne419 Aug 06 '19 edited Aug 06 '19
Python 3 with bonus 1 and bonus 4, any tips appreciated.
0
u/kravhen Aug 06 '19 edited Aug 06 '19
Python 3 - Did it vanilla then added bits to clear bonus 1-2-3-4 (see comments). Will finish bonus 5 and clean up in a bit.
0
u/[deleted] Aug 20 '19
[deleted] — view deleted comment
0
u/[deleted] Oct 30 '19
[deleted] — view deleted comment
0
u/[deleted] Aug 05 '19
[deleted] — view deleted comment
0
u/[deleted] Aug 20 '19
[deleted] — view deleted comment
1
u/[deleted] Aug 11 '19
[removed] — view removed comment