cant get my radix sort working:(

Andrew Hodel

Greenhorn

Posts: 10

posted 3 years ago

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

posted 3 years ago

What is the algorithm for radix sort? Write it down on paper, then convert that to pseudo‑code, before trying to write code.