Skip to content
Snippets Groups Projects
Select Git revision
  • 14e416f68838664835e0f571714df450850cca26
  • master default protected
2 results

index.js

Blame
  • 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.`);