Free2Code
 
Time: 2008-12-04, 10:06pm
radix sort
Subject: radix sort  ·  Posted: 2006-11-12, 07:41am
Rank: ? (11)
Member #: 28462
ok so i have a hw assignment where i have to sort using radix sort but funny thing is teacher hasnt taught us radix sort. he explained the idea but didnt show any example code or anything. i know you start by sorting the last digit of the number and but all the 0's together, all the 1's together, etc. but i dont know how to compare just the last digits. then the 2nd to last digits.

say you have to sort these values: 1324, 3495 0129, 3490. how would i do that? i really need help on this. ive looked radix sort up on google but its just not helping. please reply!

 
  Reply to this ·  Post link ·  Top

Pages: 1

Please login or register to post a reply.

icons