i
basic algorithms and DS
Big O Notation Name Example(s)
O(1) Constant # Odd or Even number, # Look-up table (on average)
O(log n) Logarithmic # Finding element on sorted array with binary search
O(n) Linear # Find max element in unsorted array, # Duplicate elements in array with Hash Map
O(n log n) Linearithmic # Sorting elements in array with merge sort
O(n2) Quadratic # Duplicate elements in array **(naïve)**, # Sorting array with bubble sort
O(n3) Cubic # 3 variables equation solver
O(2n) Exponential # Find all subsets
O(n!) Factorial # Find all permutations of a given set/string
(°0°)
by categories
(°0°)
java demos
- Data Structures
(°0°) - Java Collections
(°0°) - major Algorithms
(°0°) - Sorting Algorithms
(°0°) - Recursions
(°0°) - DFS and BFS
(°0°)