Question d’entretien chez Amazon

Implement hashtable

Réponse à la question d'entretien

Utilisateur anonyme

11 janv. 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; } }