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.
I'm a Sr. Software Engineer at Flashpoint. I specialize in Python and Go, building functional, practical, and maintainable web systems leveraging Kubernetes and the cloud. Blog opinions are my own.
Your solution in Ruby is awesome. I also love the dedication to benchmarking your two different variations and very interesting results on
.countand 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!