Re:Hired – Technical Interview Score
by mkozlows on Monday November 13, 2017 @04:16PM
(#15690325)
Memorization? It's a factorial function. You shouldn't need to study or memorize anything to implement a factorial function. If you can't come up with this algorithm off the top of your head, that is legit telling something about your problem-solving ability.
[ Parent
| on HN ]
I'd still ask for the definition of factorial.
Sure, for various reasons, most programmers know the factorial, but I'd consider remembering the definition of some mathematical operation only common in certain domains (statistics and finance?), that most people only learn in high school and never use again, to be rote memorization.
Ability to detect your deficiencies of knowledge and ask questions is hugely important, and is worth testing.
Or you can use a search engine.
Not particularly factorial problem, but the general interview questions require some amount of prior knowledge about the techniques. Topics like math based or bit manipulation, permutations/combinations have questions which are often asked in Interviews and require some prior knowledge to be able to give optimized solutions.