Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

cant get my radix sort working:(

 
Andrew Hodel
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i need to write code to sort an arbitrary number of digits and random values. my code as of now just replaces the first position with the last position!
ive been working at this all day and just cant figure out where its bugging out. please help

 
Campbell Ritchie
Sheriff
Posts: 51447
87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the algorithm for radix sort? Write it down on paper, then convert that to pseudo‑code, before trying to write code.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic