This contains many useful algorithms.
$ ./run.sh
$ ./build-cmake/Debug/random_shuffle_test
Includes recursively and iteratively algorithms of preorder, inorder and postorder
Given two integers n and k, return all possible combinations of k numbers out of 1 ... n
For example,
If n = 4 and k = 2, a solution is:
[
[2,4],
[3,4],
[2,3],
[1,2],
[1,3],
[1,4],
]
From leetcode: https://leetcode.com/problems/combinations/
Majority element is the element that appears more than ⌊ n/2 ⌋ times
From leetcode: https://leetcode.com/problems/majority-element/
Includes quick sort, insert sort, select sort, bubble sort, and merge sort
Randomly shuffle all the value in the array. Must ensure that every value has the same probability of existing in all the positions of the array
Dijkstra algorithms
Floyd algorithms