6 ms·
One common question of this type (I've had it, and heard a few others as well) is: implement a function returning the factorial of its input (so n!). Basically
by hiq 5y ago
One common question of this type (I've had it, and heard a few others as well) is: implement a function returning the factorial of its input (so n!). Basically FizzBuzz.
I recently got that question after a homework with about 200 lines of python written. If I had failed at this question, the company would have concluded that I had somebody else do the homework for me, so I understood where they came from with this.