«« Next » « Previous
«« Next » « Previous

Link Details

Link 80262 thumbnail

By mswatcher
via igoro.com
Submitted: May 10 / 03:17

What is the time complexity of quicksort? The answer that first pops up in my head is O(N logN). That answer is only partly right: the worst case is in fact O(N2). However, since very few inputs take anywhere that long, a reasonable quicksort implementation will almost never encounter the quadratic case in real life.
  • 1
  • 0
  • 74
  • 32

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (1)



Voters Against This Link (0)