I'm bringing back the coding puzzles after a few month hiatus!
Every day, I post coding puzzles. These are quick coding challenges that increase i...
For further actions, you may consider blocking this person and/or reporting abuse
Tuesday (7 KYU): Find the stray number
codewars.com/kata/57f609022f4d534f...
What is this necromancy?
Haha, bitwise xor. Since it's immutable and commutative it'll reduce down to the stray!
I should add that this only works because it’s an odd number of elements in the array. An even number of matching elements cancel each other out to result in the “stray”.
Oh my, it even works in python!
This is one of those moments when I wish gifs worked better on Dev. But yay!
Wednesday (6 KYU): Implement Syntax Highlighting
codewars.com/kata/roboscript-numbe...
And now with added re.sub with a callable, which I had no idea was a thing! These coding things are pretty nifty for leaning new tricks I must say!
Oooh, I like this. I was thinking about a dictionary but didn't think about a dictionary with the regex as a key!
Booo regex
Quick edit with a dictionary.
Monday (8KYU): How many stairs will Suzuki climb in 20 years?
codewars.com/kata/56fc55cd1f5a93d6...
Javascript (ES6):
Not a one liner like you guys but C#:
Okay, I couldn't help myself:
My Python solution:
Friday (CodeJam): Foregone Solution
codingcompetitions.withgoogle.com/...
brute force for me so far.
Thursday (5 KYU): Perimeter of squares in a rectangle
codewars.com/kata/559a28007caad2ac...
TypeScript. Great practice!