by ProZsolt · 6y ago · 0 comments
I work really bad under pressure and don't like memorizing algorithms. I hate programming anything complex on a whiteboard or anyway on-site.
Simple stuff, like your example is fine. It's a good way to weed out charlatans. A few points what I consider a good test:
* No previous algorithm knowledge required.
* No ticks.
* An average candidate should finish it in 5 minutes. (So we gave them 10 mins)
* It can be written in 10-15 lines.
* Pseudocode is fine
Why should this be inadequate to demonstrate technical skills?
I can write Rubyish, Goish, Pythonish or PHPish pseudocode, but the syntax will be only 90% correct. I remember distinguishing features(like Ruby blocks), but features that all language has always a blur.