Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem #3, 5, 8 Solved #10

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Problem #3, 5, 8 Solved #10

wants to merge 5 commits into from

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