Fizz Buzz in Tensorflow
interviewer: Welcome, can I get you coffee or anything? Do you need a break?
me: No, I've probably had too much coffee already!
interviewer: Great, great. And are you OK with writing code on the whiteboard?
me: It's the only way I code!
interviewer: ...
me: That was a joke.
interviewer: OK, so are you familiar with "fizz buzz"?
me: ...
interviewer: Is that a yes or a no?
me: It's more of a "I can't believe you're asking me that."
interviewer: OK, so I need you to print the numbers from 1 to 100, except that if the number is divisible by 3 print "fizz", if it's divisible by 5 print "buzz", and if it's divisible by 15 print "fizzbuzz".
me: I'm familiar with it.
interviewer: Great, we find that candidates who can't get this right don't do well here.
me: ...
interviewer: Here's a marker and an eraser.
me: [thinks for a couple of minutes]
interviewer: Do you need help getting started?
me: No, no, I'm good. So let's start with some standard imports:
import numpy as np
import tensorflow as tf
interviewer: Um, you understand the problem is fizzbuzz, right?