DEV Community

Ratik Mahajan
Ratik Mahajan

Posted on

1

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)

Hostinger image

Get n8n VPS hosting 3x cheaper than a cloud solution

Get fast, easy, secure n8n VPS hosting from $4.99/mo at Hostinger. Automate any workflow using a pre-installed n8n application and no-code customization.

Start now

πŸ‘‹ Kindness is contagious

Please leave a ❀️ or a friendly comment on this post if you found it helpful!

Okay