Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Hand them a small hash/dictionary

{a=>1, b=>2, c=>2} Have them swap keys and values.

See if they can cope with duplicates.

On large hiring spree (20+ hires, hundreds of interviews) I would walk in, give them that in any language they wanted.

Moment I saw they understood, I would let them know they passed and walk out. Let others handle the social aspects of interviews.

90% failed test or took ages to get to solution.

Remaining would finish it under a minute and be confused as to why we gave them such a trivial test.



Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: