Skip to content

Instantly share code, notes, and snippets.

@jMyles
Last active December 25, 2015 23:49
Show Gist options
  • Save jMyles/7059961 to your computer and use it in GitHub Desktop.
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.
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