Skip to content

Conversation

@awong05
Copy link

@awong05 awong05 commented Feb 18, 2014

The solution to #3 is a little bit dirty, because I wanted to solve assuming no additional knowledge in number theory nor requiring additional gems/files. By contrast, #5 was incredibly simple, after a bit of exploration. Will revisit #8 soon, but it works and gave the correct answer.

@cindytran
Copy link

Wow, your solution to Problem #5 makes my solution look very silly. Very nice!

@awong05
Copy link
Author

awong05 commented Feb 21, 2014

Well, I knew there was a .lcm method in the Integer class; the trick was just figuring out if there was an easy way to iterate it over the full range of numbers. Given this is Ruby, I just had a hunch that there was (and there was!).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants