Skip to content

Latest commit

 

History

History
67 lines (58 loc) · 1.47 KB

README.md

File metadata and controls

67 lines (58 loc) · 1.47 KB

Data Structures and Algorithms

example workflow

Big O Notation

Big O Cheat Sheet

Time

  • Constant: O(1)
    • Arrays
    • Hash Maps/Tables
  • Logarithmic: O(log n)
    • Binary Search
    • Binary Search Tree
  • Linear: O(n)
    • Mean of Array
    • Mode of Array
  • Linearithmic: O(n log n)
    • String Sort
    • Median of Array
    • Comparison Sort
    • Heapsort
    • Merge Sort
    • Fast Fourier Transform
  • Quadratic: O(n²)
    • Quick Sort
    • Bubble Sort
    • Selection Sort
    • Insertion Sort
    • Iterate Two Arrays
    • Two Sums
  • Expontential: O(2^n)
    • Traveling Salesman using Dynamic Programming
    • Determining if two logical stagements are equivalent using brute-force search
  • Factorial: O(n!)
    • Traveling Salesman using brute-force search
    • Enumerating all partitions of a Set

Space

  • Constant: O(1)
    • Binary Search
    • Binary Search Tree
    • Mean of Array
  • Logarithmic: O(log n)
    • Quick Sort
  • Linear: O(n)
    • Median of Array
    • Mode of Array
    • Bubble Sort
  • Linearithmic: O(n log n)
  • Quadratic: O(n²)
  • Expontential: O(2^n)
  • Factorial: O(n!)

Project Setup

npm init -y
npm i --save-dev nodemon karma-cli karma mocha chai karma-mocha karma-chai karma-chrome-launcher
git init
git add .
git commit -m "Add Project Files"
npm run test