3 ms·
I get what your saying, and have been given bad interview tests before. My baseline test is to swap keys and values in a [hash/map/dictionary]. In any language
by treeman79 5y ago
I get what your saying, and have been given bad interview tests before.
My baseline test is to swap keys and values in a [hash/map/dictionary]. In any language of their choice.
So
[a=>1, b=>2, c=2]
Becomes
[1=>a, 2=>[b,c]]
75% fail completely. Some struggle but pass.
Others complete it in a minute and are confused as to why such an easy test.