View Single Post
  #13  
Old 11-22-2008, 07:50 AM
Novo Novo is offline
[TServerDeveloper]
Join Date: Jun 2006
Posts: 448
Novo will become famous soon enough
Yea... WhiteDragon's code is marginally better than mine because I use an insertion (which has a O(n)... Making my code O(n^2) in worst case) while WhiteDragon's model uses qsort( which doesn't insert, but swaps values. No memory displacement ).

I think mine's easier to understand though, and for someone who isn't familiar with algorithms... Might be a start.
Reply With Quote