Re: how do i split a string
Date: Sat, 18 Oct 2008 12:13:08 -0500
"Maxim Demenko" <mdemenko_at_gmail.com> wrote in message
> Bob Jones schrieb:
>> Ok, I just wasn't sure why you were providing an alternative solution to
>> a different problem.
> You see - to find *all* occurences of repeated characters within given
> string (meant - to find corresponding position and length) in my opinion
> is not much different, it is just a more general case of what was asked -
> to find *first two* occurences. Do you think, it isn't worth to look for
> alternative solutions for more general classes of problems, if a solution
> for a particular case is known?
I am all for alternative or better solutions, but you can't call it an alternative if it returns a different result.
This result is not the same as "3263" that OP was looking for.
3 2 6 3 12 6 20 2
Now you can probably write something does a lot more, but whether you need it is the question. Received on Sat Oct 18 2008 - 12:13:08 CDT