Ryan is an engineer in the Sacramento Area with a focus in Python, Ruby, and Rust. Bash/Python Exercism mentor. Coding, physics, calculus, music, woodworking. Looking for work!
Your solution in Ruby is awesome. I also love the dedication to benchmarking your two different variations and very interesting results on .count and it's optimization. I didn't know that before. Overall, Ruby is just plain awesome.
Ryan is an engineer in the Sacramento Area with a focus in Python, Ruby, and Rust. Bash/Python Exercism mentor. Coding, physics, calculus, music, woodworking. Looking for work!
Victory! I found an interesting performance quirk, at least for Ruby. Thanks for a great puzzle and write-up!
Your solution in Ruby is awesome. I also love the dedication to benchmarking your two different variations and very interesting results on
.count
and it's optimization. I didn't know that before. Overall, Ruby is just plain awesome.Thanks! Yeah, I was super sure the way you did it would be faster. Ruby is one of my favorite things!