View Single Post
Old 09-28-2012, 06:42 AM   PM User | #1
sorlaker
Regular Coder

 
Join Date: Dec 2009
Posts: 167
Thanks: 23
Thanked 1 Time in 1 Post
sorlaker has a little shameless behaviour in the past
Doubts! Recursive Bubble Sort!

Can anyone explain to me each step of this code?
I know that its a recursive bubble sort but i can't figure out how he does that.

Here is the code.
http://pastebin.com/fFbBbPBa

I know is that it extends with augment() method (Line 24). But i don't know why it uses that boolean array in both cases (next() and augment()).
I can't understand the part after it compares a > b and returns true. So a > b (Line 83).

Thanks! I really need this!
sorlaker is offline   Reply With Quote