in reply to array question
If you used a hash, I'd expect it to work in any sequence. So have you tried running it with the different input orders? You didn't post your code, so there's really no way of telling if your code would work with a different input sequence or not.
If you did it the way I'd've expected, it would work if you entered a[0:0], a[4:5], a[1:3] or a[4:5], a[0:3] as well.
Why not post your code here so we can take a look at it?
...roboticus
When your only tool is a hammer, all problems look like your thumb.
|
|---|