Day 2: Prepare For FizzBuzz.z ->_->

调整参数后的结果

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?

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

友情链接更多精彩内容