This week's book giveaway is in the Security forum.
We're giving away four copies of Securing DevOps and have Julien Vehent on-line!
See this thread for details.
Win a copy of Securing DevOps this week in the Security forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

cant get my radix sort working:(  RSS feed

 
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

 
Sheriff
Posts: 57897
178
  • 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
Boost this thread!