Palantir Technology Interview Question
Senior Software Development EngineersCountry: United States
Interview Type: Phone Interview
-Define a 2d array.
-1st index of each array will be the key ant the rest will be the value of the multimap.
-on addition of a element check if space avalabel for new recoer then add new element in the last index else create new 2d arrey of double size than exising arrey and copy existing value then add new.
A link List implementation would be more efficient.
Something like
- Abhi May 20, 2013