4 ms·
I think he means: if you have to traverse it without building up a result (or doing some in-place modification) as you go - then you're doing it wrong. Obvious
by mjw 16y ago
I think he means: if you have to traverse it without building up a result (or doing some in-place modification) as you go - then you're doing it wrong.
Obviously you gotta traverse the thing at least once.
- ydant 16y agoIf that's what he meant, his comment was pretty much useless. Anyway, I misread "traverse" for "reverse", hence my incredulous comment. Perhaps traverse means different things to the two of us.