Frage im Vorstellungsgespräch bei Amazon

Implement hashtable

Antwort im Vorstellungsgespräch

Anonym

11. Jan. 2017

public class Hashtable { private LinkedList storage; int n; public Hashtable(int n) { storage = new LinkedList(n); this.n = n; } public put(int elm) { Integer i = new Integer(5); int tmp = i.hasCode(); int key = tmp%n; } }