in reply to Sorting challenge
I suggest you read each line of code and decide what it is for. Follow the logic, and see if it makes sense.
I was going to offer a more elegant (and working) solution, but it turns out that your specification is incomplete, and partially contradicts the code you demonstrated. So until that's straightened out, I'm a little hesitant to demonstrate a solution that might be misinterpreting what you're trying to accomplish.
Dave
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Sorting challenge
by PerlSufi (Friar) on Jul 23, 2013 at 01:16 UTC | |
by davido (Cardinal) on Jul 23, 2013 at 05:11 UTC | |
by PerlSufi (Friar) on Jul 23, 2013 at 14:14 UTC | |
by davido (Cardinal) on Jul 23, 2013 at 14:59 UTC | |
by hdb (Monsignor) on Jul 23, 2013 at 15:07 UTC | |
| |
by PerlSufi (Friar) on Jul 23, 2013 at 15:24 UTC | |
|