A few data structures and algorithms implemented in c++
- [Insertion sort]: Accepts
std::vector<int>
as parameter. - [Bubble sort]: Accepts
std::vector<int>
as parameter. - [Merge sort]: Template function, accepts
std::vector<T>
. - [Heap sort]: Template function, accepts
std::vector<T>
.
- [Binary Search]: Implemented with a while loop.
- [Correct brackets sequence]: It checks whether a given sequence of brackets is correct or not. ex: "{({})}" => correct.
1.[Heap]