quote:
Originally posted by John Anderton
2) Count instances of char to replace
That would require a for loop that has more (or at least equal - only when there are no instances of double leters) itterations than my while though.... and would probably be a while satement unles you checked each letter individually.
However your method is better for someone to learn how to do it themselves I guess.....