2 ms·
I thought you were allowed to assume functions you needed in the interest of a modular solution. Array.flatten is an obvious “assume I have this, I would write
by seanmcdirmid 8y ago
I thought you were allowed to assume functions you needed in the interest of a modular solution. Array.flatten is an obvious “assume I have this, I would write it anyways.”
I think most decent interviews will give you a pass on an enhanced standard library.
- Zelizz 8y agoWhen doing an interview at Google in C, I asked if I could assume I had a hashtable implementation with so-and-so interface, and the interviewer said no ¯\_(ツ)_/¯
- seanmcdirmid 8y agoOuch. Well, most hashtables in C are custom, I guess.
- yoz-y 8y agoThis depends on the question but I assume that in this case the interviewer wanted a different solution than one using a hash table.