Skip to content

cynx/js_algorithms_datastructures

Repository files navigation

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...

About

Few common algorithms and data structures in JavaScript

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published