Domanda di colloquio di GoPro

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

Risposta di colloquio

Anonimo

14 giu 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.