Only had a few minutes to myself and got a single exercism exercise of Acronym done. Sorry. I still did something so I am calling the streak continued, I am not restarting or quitting (yet).
Posts Tagged #100DaysOfCode
Exercises time. Prime factors, the community did the problem more gracefully than mine. Grains was ok, but for the last square of the chessboard I was getting the wrong value. It looked like rounding error so I switched to bigint[…]↓ Read the rest of this entry…
Today’s first exercise was word count. It looked like a perfect use for regular expressions. The community solutions seem to agree. The ones I saw were fancier than mine, but I think mine is more readable. Bank Account had me[…]↓ Read the rest of this entry…
Life, the Universe and Everything! Why doesn’t javascript have a Math.sum() function? I did find a Math.sumPrecise() maybe I should have used that, but I wanted sum. I used a reduce higher level instruction instead. Otherwise todays first exercise hamming[…]↓ Read the rest of this entry…
Today’s first exercise Clock would have been so much easier if they included some specifications. Like plus() and minus() have minutes as a parameter (why that wasn’t already set in the skeleton I don’t know). Also, the constructor takes hours[…]↓ Read the rest of this entry…
More exercises. First is Reverse String it had some extra challenge at the end to reverse strings with grapheme clusters. I got how to split it out from: https://www.javaspring.net/blog/how-can-i-tell-if-a-string-contains-multibyte-characters-in-javascript/. Second was Collatz conjecture if you do a visualization of that[…]↓ Read the rest of this entry…
I kind of want to finish the Javascript track with 100 days of code. With 100 days of code and 156 javascript exercises that seems a bit unlikely. I really should be at 59 exercises. I decided to try to[…]↓ Read the rest of this entry…
Today’s exercise was simple-cipher. It is really the Vigenère cipher, it is like the Caeser cipher except instead of one shift for the whole message, you have a long key text where you shift according to the matching position of[…]↓ Read the rest of this entry…
Today’s exercise was robot name. You had to make a unique random robot name. The tricky part was making the name field read only. I think I could have used this a day or two ago when I was talking[…]↓ Read the rest of this entry…
Today’s exercise was list ops which was to implement list functions without using the higher order operations or built in functions of similar use. I started off on this one all wrong. I think this example shows why encapsulation is[…]↓ Read the rest of this entry…








