Pergunta de entrevista da empresa GoPro

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

Resposta da entrevista

Sigiloso

14 de jun. de 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.