Frage im Vorstellungsgespräch bei Yelp

linked list or array for binary search?

Antworten zu Vorstellungsgespräch

Anonym

14. März 2012

Array. It's easier to find the middle of the list in an array than in a linked list

1

Anonym

6. Sep. 2012

Array, but not only because is difficult to find the middle but because it is impractical to operate binary search over the list.