Solving Fizz Buzz with Cosines
susam.net
Solving Fizz Buzz with Cosines
1–10 of 69 posts
Re: Solving Fizz Buzz with Cosines
#2Re: Solving Fizz Buzz with Cosines
#3Re: Solving Fizz Buzz with Cosines
#4TFA implies that branches (if statements and piecewise statements) are not allowed, but I don't see why not. Seems like a basic operation to me.
Nevermind that `s[i]` is essentially a piecewise statement.
Re: Solving Fizz Buzz with Cosines
#5Re: Solving Fizz Buzz with Cosines
#6https://joelgrus.com/2016/05/23/fizz-buzz-in-tensorflow/
Re: Solving Fizz Buzz with Cosines
#7There are several mentions of "closed-form expression" without precisely defining what that means, only "finite combinations of basic operations". TFA implies that branches (if statements and piecewise statements) are not allowed, but I don't see why not. Seems like a basic operation to me. Nevermind that `s[i]` is essentially a piecewise statement.
There is no universal definition of 'closed-form expression'. But there are some basic operations and functions that are broadly accepted, and they are spelled out directly after the 'finite combinations' phrase you quoted from the post. Quoting the remainder of that sentence here:
'[...] finite combinations of basic operations such as addition, subtraction, multiplication, division, integer exponents and roots with integer index as well as functions such as exponentials, logarithms and trigonometric functions.'
Re: Solving Fizz Buzz with Cosines
#8Re: Solving Fizz Buzz with Cosines
#9https://joelgrus.com/2016/05/23/fizz-buzz-in-tensorflow/
This would be an offer on the spot from me
> interviewer: Great, we find that candidates who can't get this right don't do well here.
> me: ...
Shit attitude from that candidate, considering the interviewer is completely correct. I wouldn't hire them since they are obviously a problem employee.
For those that don't know, Fizz Buzz is less an aptitude test and more of an attitude test. That's why this candidate failed and didn't get the job.