/data_structures

Data Structures

Primary LanguageJavaScriptMIT LicenseMIT

data_structures

Data Structures

Data Structures that I've coded. Extracted from https://github.com/mrinalini-m/algorithms.

  1. Dynamic Array
  2. Hash Table
  3. Linked List
  4. Stack
  5. Queue
  6. Binary Search Tree
  7. Binary Tree Traversal (DFS, BFS)
  8. Graph
  9. Graph Traversal (DFS, BFS)
  10. Trie
  11. Binary Heap (Min, Max)

Usage

  1. To do a quick check for a test case in a particular file, run npx babel-node src/FileName.js from root.
  2. Files with private class properties don't require babel to transpile them and node src/FileName.js will run them without errors but some files with private class methods do require babel.

Testing

Tests are written using and run by Jest test framework.

Run npm run test from root or sub folders to run tests.