Frage im Vorstellungsgespräch bei PayPal

HashMap implementation

Antwort im Vorstellungsgespräch

Anonym

19. März 2012

In C++, you can use a dynamic array with varying number of hash entries per row. The hash can be found by taking the modulo of the key. If a collision occurs, you can use linear probing by taking the modulo of (key + 1).

2