GoPro interview question

Flip the keys & values in a hash table / dictionary / array (PHP style)

Interview Answer

Anonymous

14 Jun 2015

An incredibly simple Javascript function that did just that. Modified it for the one edge case of having multiple values, which I vocalized as a potential problem before writing it out on a whiteboard.