This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design 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: 48652
56
  • 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