2 ms·
Looks good. reverseRange()'s end condition can just be `i < j` because you don't need to swap the middle character with itself. :)
by cpeterso 15y ago
Looks good. reverseRange()'s end condition can just be `i < j` because you don't need to swap the middle character with itself. :)
- masterj 15y agoDoh! Somehow I got that mixed up in my head because that was my original intention. Thanks!