Skip to content

Latest commit

 

History

History
18 lines (15 loc) · 868 Bytes

File metadata and controls

18 lines (15 loc) · 868 Bytes

data-structures-algorithms

A few data structures and algorithms implemented in c++

Algorithms:

Sorting Algorithms

  1. [Insertion sort]: Accepts std::vector<int> as parameter.
  2. [Bubble sort]: Accepts std::vector<int> as parameter.
  3. [Merge sort]: Template function, accepts std::vector<T>.
  4. [Heap sort]: Template function, accepts std::vector<T>.

Searching Algorithms

  1. [Binary Search]: Implemented with a while loop.

Miscellaneous Algorithms

  1. [Correct brackets sequence]: It checks whether a given sequence of brackets is correct or not. ex: "{({})}" => correct.

Data Structures

1.[Heap]