Last active
December 25, 2015 23:49
-
-
Save jMyles/7059961 to your computer and use it in GitHub Desktop.
InterviewJet FizzBuzz. Replete with ugly list comprehension. I'm not looking for a job right now, but if you want to apply at InterviewJet and aren't in the mood to make a FizzBuzz for the eight millionth time, your troubles are over.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
exclusive_boundry = 1000 | |
multiples = [3, 5] | |
sum = 0 | |
for candidate in range(exclusive_boundry): | |
if 0 in [candidate % multiple for multiple in multiples]: | |
sum += candidate | |
print sum |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment