|
|
|
|
|
by lucb1e
696 days ago
|
|
FYI I wouldn't know how to do fibonacci sequence because I don't know its definition. I could make a guess because it came up as a toy problem before, but because I never actually needed it for anything I'm not super familiar. Compound interview stress and I'd potentially get factorial wrong as well because that's also not something I'd normally implement. I might recommend, when asking this question, to give the definition with a few example inputs and outputs. That should avoid these types of issues where people are perfectly capable of coding the requested algorithm but aren't mathematicians / toy problem experts |
|
OP here. As I said, "I give the solution away".
I basically tell the definition/formula at the beginning, and give examples and test cases for you to check your results against.
I also help people along, like I would in pair programming.
A lot of people still fail. Some with allegedly 25 years of experience. Luckily this is at the beginning, so I don't have to spend the whole interview with them.