4 ms·
What an eerie feeling reading this, or was it prescient?: """ def fizz_buzz_encode(i): if i % 15 == 0: return np.array([0, 0, 0, 1]) eli
by BenoitP 13d ago
What an eerie feeling reading this, or was it prescient?:
"""
def fizz_buzz_encode(i):
if i % 15 == 0: return np.array([0, 0, 0, 1])
elif i % 5 == 0: return np.array([0, 0, 1, 0])
elif i % 3 == 0: return np.array([0, 1, 0, 0])
else: return np.array([1, 0, 0, 0])
interviewer: OK, that's probably enough.
me: That's enough setup, you're exactly right. [<--- !!] [...]
"""
Damn, Claude was there all along
- ckastner 13d agooh, I missed that. Brilliant!