Hacker News new | ask | show | jobs
by neuromute 3590 days ago
So, the first 2 searches pulled back fairly poor results. It would perhaps be useful to have a cycle to next result shortcut, in order to keep searching until you find something of use. That said, the Atom plugin used the same search term and returned a better first result, so it might be worth using something like their method for determining the top result.

FWIW...

First search, "QuickSort" returned:

  6 + 7 = 13
  13 / 2 = 6.5
  6.5 rounded down = 6
Next search, "BubbleSort", produced:

  It depends on the way your data is distributed - if you can make some assumptions. One of the best links I've found to understand when to use a bubble sort - or some other sort, is this - an animated view on sorting algorithms: http://www.sorting-algorithms.com/