Earlier quoted context omitted.
FWIW, please be mindful of your biases. I recently had an interviewer with a major bank conglomerate who had some silly puzzle. I outlined a system for solving it in algorithmic notation, and the interviewer had no idea that such a response was appropriate and said sorry, that they were looking for someone with programming experience, not specific, just "many languages" ... Not saying you do this, but what if someone…
> what if someone provided Fizz Buzz in COQ or Elixir Wie waere es fuer dich, wenn ich in einer Sprache antworte, die du wahrscheinlich nicht verstehst?
Fizz Buzz in Tensorflow
41–50 of 85 posts
Re: Fizz Buzz in Tensorflow
#42I think I'd start with, "Let's define two combinators S and K..." .... Fizz Buzz in combinatory logic, that would be quite entertaining.
Re: Fizz Buzz in Tensorflow
#43Earlier quoted context omitted.
I would have given him the job
If that were a real situation, I wouldn't have, he over-engineered the shit out of it and while cool, I prefer devs who can solve simple problems simply; they get more work done for the price.
Re: Fizz Buzz in Tensorflow
#44Earlier quoted context omitted.
I hate puzzles too, especially the gotcha ones with esoteric knowledge required. But for FizzBuzz I explain the problem, explain that there is no trick and the simplest answer that produces the correct output will be fine. To solve it you need to know about building a loop, what the mod operator does, and maybe keeping state depending on how you build it. I tell them to write it in the language they know best. None o…
You don't need mod, loops or recursion to solve it. For instance: local remove = table.remove local insert = table.insert local print = print local sequence = { false , false , 'Fizz' , false , 'Buzz', 'Fizz' , false , false , 'Fizz' , 'Buzz' , false , 'Fizz' , false , false , 'FizzBuzz' } local function o(v) local name = remove(sequence,1) insert(sequence,name) print(name or v) return v + 1 end local function t(v) r…
Although we could debate that the way you call o and t is just you manually expanding a loop. In which case I would question why you didn't just use a loop. :)
I could also debate with you that you had to at least understand what mod is to build the sequence.
I would also give you bonus points for detecting that it is a repeating pattern.
But the point is, you solved it, you wrote code that could solve it. So now I know that you're at least capable of writing basic code, and we've got a couple of things to talk about!
Re: Fizz Buzz in Tensorflow
#45Earlier quoted context omitted.
I would have given him the job
If that were a real situation, I wouldn't have, he over-engineered the shit out of it and while cool, I prefer devs who can solve simple problems simply; they get more work done for the price.
Re: Fizz Buzz in Tensorflow
#46Earlier quoted context omitted.
> what if someone provided Fizz Buzz in COQ or Elixir Wie waere es fuer dich, wenn ich in einer Sprache antworte, die du wahrscheinlich nicht verstehst?
Zavisi. Ako si mi rekao da mogu da koristim bilo koji jezik, onda je na tebi da pronađeš prevod ;)
Re: Fizz Buzz in Tensorflow
#47Re: Fizz Buzz in Tensorflow
#48Earlier quoted context omitted.
You don't need mod, loops or recursion to solve it. For instance: local remove = table.remove local insert = table.insert local print = print local sequence = { false , false , 'Fizz' , false , 'Buzz', 'Fizz' , false , false , 'Fizz' , 'Buzz' , false , 'Fizz' , false , false , 'FizzBuzz' } local function o(v) local name = remove(sequence,1) insert(sequence,name) print(name or v) return v + 1 end local function t(v) r…
You're right, it doesn't (clever solution BTW). Although we could debate that the way you call o and t is just you manually expanding a loop. In which case I would question why you didn't just use a loop. :) I could also debate with you that you had to at least understand what mod is to build the sequence. I would also give you bonus points for detecting that it is a repeating pattern. But the point is, you solved it…
I head the "what if they do it this other weird way?" question off by giving them a simple problem, having them solve it (or at least convince me their solution solves it), and then asking them to solve it a different way. My screens mostly follow the ideas from https://sites.google.com/site/steveyegge2/five-essential-pho... I allocate about 10 minutes max for "basic coding" where I just ask them (lately) to write a function that returns true if the given input int (which is assumed to be > 0) is even and false if odd. Then I ask them to do it in different ways. If they use bit-and, I figure they know enough about the "bits and bytes" section too for my team's purposes. Last time someone couldn't recall using bit-and but surprised me with a way I didn't consider, which was convert to string and check the last character. I'm sure there are other ways to do it I haven't considered either. Maybe someone will give me a solution with tensorflow someday, but what would be really impressive is if they bust that out within a few minutes. :) All I'm really after is "can you write code?", if the answer is no then very little time was wasted, if the answer was yes we can go into variations and other questions to rank the other yeses / find other red flags.
Re: Fizz Buzz in Tensorflow
#49Maybe the one-hot binary encoding wasn't the best feature set. Base 3 and Base 5 encodings might have worked better.
Stupid question: We are trying to train the network how to calculate modulus of division. Of a binary encoding. Why should we expect this to be learnable in only two layers?