Pergunta de entrevista da empresa Tableau Software

Difference between Hashtables and BST. Can a static member function be as well a virtual one. Come up with a psudocode that generate an array from another one where the you collect the sum of all elements except the ith one. Example: 10 20 30 40 (input) --> 90 80 70 60 (output)

Resposta da entrevista

Sigiloso

23 de mar. de 2016

I couldn't answer the hash table question since I did not remember that data structure (never used it in my coding experience, I mostly use STL containers). I had a mind fog after that and took a bit of time to answer the static function question but I have. Now the coding question wasn't strictly speaking "coding", the interviewer did not leave me a chance to start typing and wanted that I somehow spell the pseudo-code for him verbally, and so I ended up with partial answers (with no consideration of corner cases) since I usually think while typing.

1