Few common algorithms and data structures in JavaScript
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
README.md
js_basics_array.js
js_binary_search_tree.js
js_hash.js
js_linked_list.js
js_queue.js
js_set.js
js_sorting.js
js_stack.js

README.md

js_algorithms_datastructures

Few common algorithms and data structures in JavaScript

js_basics_array.js:

  • Fibonacci number at Fn position
  • Fibonacci series
  • Flatten an array
  • Array - sorting numbers
  • Array - sorting string
  • Array - sorting objects on a property

js_stack.js:

  • Stack class implementation
  • Base Convertor using stack. Convert decimal to binary, octal or hex

js_queue.js

  • Queue class implementation
  • Basic Queue Example
  • Priority Queue
  • Hot Potato - Circular Queue (Elimination)

js_linked_list.js

  • Linked List Implementation and Examples
  • Doubly Linked List Implementation and Examples
  • Circular Linked List Implementation and Examples

js_set.js

  • Set Class implementation
  • Union Example
  • Intersect Example
  • Difference Example
  • Subset Example

js_hash.js

  • Hash Table - Separate Chaining
  • Hash Table - Linear Probing

js_binary_search_tree.js

  • BST Implementation
  • Insert
  • Search
  • In Order Traverse
  • Pre Order Traverse
  • Post Order Traverse
  • Delete

js_sorting

  • Bubble Sort
  • Selection Sort
  • Insertion Sort
  • Merge Sort
  • Quick Sort
  • Binary Search using Quick Sort

js_graphs -- TBC soon...