DEV Community

Ratik Mahajan
Ratik Mahajan

Posted on

Sorting algorithm and their complexities

There are many sorting algorithm that are used to sort the data in the data structure. below are the list of sorting algorithm and their worst runtime efficiency .

  • bubble sort : O(n*n)
  • selection sort: O(N*n)
  • quick sort : O(n*n)
  • merge sort O(log n)

Top comments (0)