- #1
RyMi
- 7
- 0
Title kind of explains what I'm trying to do here. I know exactly how radix sort is SUPPOSED to work but I just don't have a clue how to go about coding it.
Basically what I am asking for is some java based pseudo-code just to get me in the right direction.
I'm specifically sorting an array of Integers and using an array of ArrayLists as my 'buckets'.
I've searched all over the Internet but I just can't find anything that is what I need. It's always either way too complicated with separate classes or 5 or more helper methods or the pseudo-code is too vague to really give me an idea of how to go about coding it.
We are allowed to use helper methods but we were told that we don't NEED one and to not make it too complicated.
The only thing passed to the method is the array itself.
Thanks in advanced.
Basically what I am asking for is some java based pseudo-code just to get me in the right direction.
I'm specifically sorting an array of Integers and using an array of ArrayLists as my 'buckets'.
I've searched all over the Internet but I just can't find anything that is what I need. It's always either way too complicated with separate classes or 5 or more helper methods or the pseudo-code is too vague to really give me an idea of how to go about coding it.
We are allowed to use helper methods but we were told that we don't NEED one and to not make it too complicated.
The only thing passed to the method is the array itself.
Thanks in advanced.