In my attempt to learn Ruby out in the open, here’s my solution for Project Euler Problem 53. I first attempted to solve this problem using the Ruby combinations libraries. That didn’t work out so well. With a second look at the problem, the provided formula ended up being just the thing to solve the problem effectively. [...]
In my attempt to learn Ruby out in the open, here’s my solution for Project Euler Problem 52. Compared to Problem 51, this problem was a snap. Brute force and pretty quick… As always, any feedback is welcome. # Euler 52 # http://projecteuler.net/index.php?section=problems&id=52 # It can be seen that the number, 125874, and its double, # 251748, [...]
In my attempt to learn Ruby out in the open, here’s my solution for Project Euler Problem 51. I know I started back up with Python this week, but I have three more Ruby solutions in the hopper and I wanted to share. For the record, Project Euler 51 was the second hardest Euler problem for me [...]
After dedicating the last eight weeks to learning Ruby, it’s time to move onto another language. I really dig Ruby. I really enjoy its dynamism and expressiveness and always-openness and it’s been the highlight of our coding club for me so far. But that’s just my take on the language. I know a lot of [...]
Continue reading about Language Club – Battle of the Dynamic Languages
In my attempt to learn Ruby out in the open, here’s my solution for Project Euler Problem 50. And this is Euler Problem 50. I did it — I met my goal of completely the first 50 Euler Problems in Ruby by tomorrow, August 18. This was a fun problem which I did entirely on paper, in [...]
In my attempt to learn Ruby out in the open, here’s my solution for Project Euler Problem 49. Here, you will find that I took advantage of Ruby’s Prime Class and the Array.permutations method yet again. I think the solution is straight-forward and easy to read — unlike the problem description which I didn’t find very clear [...]
In my attempt to learn Ruby out in the open, here’s my solution for Project Euler Problem 48. I challenged myself to complete the first 50 Euler Problems in Ruby by tomorrow. Having such an easy problem show up this late in the game gave me great hope that I’d meet my goal. Coming up with this [...]
In my attempt to learn Ruby out in the open, here’s my solution for Project Euler Problem 47. This solution shows off the power of built-in Ruby Array methods. You will notice Array.uniq returns a new array by removing duplicate values in self and Array.transpose, which I haven’t used prior to this solution, assumes that self is [...]