Select Git revision
index.js 333 B
/* globals HashTable DICTIONARY */
/* eslint-disable no-magic-numbers */
const startTime = Date.now();
const table = new HashTable((word) => 0);
for (const word of DICTIONARY) {
table.add(word);
}
const endTime = Date.now();
$('#result').text(`Constructed hash table of American English words in ${endTime - startTime} ms.`);