美文网首页我爱编程
Day 2: Prepare For FizzBuzz.z ->

Day 2: Prepare For FizzBuzz.z ->

作者: 王工二一 | 来源:发表于2018-05-05 21:02 被阅读0次
    调整参数后的结果

    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?

    相关文章

      网友评论

        本文标题:Day 2: Prepare For FizzBuzz.z ->

        本文链接:https://www.haomeiwen.com/subject/pxwerftx.html