Re:Asana Engineering Interview Guide
by sorokod on Tuesday March 29, 2016 @05:44AM
(#11380431)
In Java 8, collisions in Maps are stored in a tree structure so worst case is O(log n)
[ Parent
| on HN ]
Re:Asana Engineering Interview Guide
by logicchains on Tuesday March 29, 2016 @07:20AM
(#11380688)
Is it a balanced tree? If not, worst case could still be O(n).
Haha, that would be an odd set of data indeed. I have no idea how they implement it but I hope I have made a point(I feel I have). I wouldn't be too impressed with an interviewer or interviewee arguing one side or the other about the complexity of "unspecified hashmap implementation".
Too clever by half.