Re: Please review my tutorial

From: Michael Mendelsohn (keine.Werbung.1300_at_msgid.michael.mendelsohn.de)
Date: 11/02/04


Date: Tue, 02 Nov 2004 14:45:24 +0100

Sathyaish schrieb:
> For instance, the original string may be,
>
> "corrocor moonoomdd ddmoonoom"
>
> And the palindromes in the string may be asked to be replaced with a
> string entered by the user of any length, greater or lesser in length
> than the length of any palindrome occurance. So, if the string to be
> replaced be "cool" the new text should be:
>
> "coolor cool"
>
> because "corroc" is the first palindrome occurance. And while
> moonooomdd is in intself a palindrome, however, the outermost
> palindrome "moonoomdd ddmoonomm" contains it. Hence, only the
> outermost palindrome is to be replaced.

What does your program do with "mamoomum" or, replacing palindrome with
"cool", "mamoockkkk"? I think the problem specification leaves sth. to
be desired.

Michael

-- 
Still an attentive ear he lent        Her speech hath caused this pain
But could not fathom what she meant   Easier I count it to explain
She was not deep, nor eloquent.       The jargon of the howling main
                 -- from Lewis Carroll: The Three Usenet Trolls


Relevant Pages

  • Re: Please review my tutorial
    ... I did not mean only alphabetic characters would be ... look for palindrome "words" but occurances of larger outermost ... palindromes in a given string. ... would all be one single occurance of a pallindrome. ...
    (comp.lang.c)
  • Re: Please review my tutorial
    ... I did not mean only alphabetic characters would be ... look for palindrome "words" but occurances of larger outermost ... palindromes in a given string. ... would all be one single occurance of a pallindrome. ...
    (comp.programming)
  • Re: Please review my tutorial
    ... I did not mean only alphabetic characters would be ... look for palindrome "words" but occurances of larger outermost ... palindromes in a given string. ... would all be one single occurance of a pallindrome. ...
    (alt.comp.lang.learn.c-cpp)
  • Re: Please review my tutorial
    ... > For instance, the original string may be, ... > than the length of any palindrome occurance. ... > outermost palindrome is to be replaced. ...
    (comp.lang.c)
  • Re: Please review my tutorial
    ... > For instance, the original string may be, ... > than the length of any palindrome occurance. ... > outermost palindrome is to be replaced. ...
    (alt.comp.lang.learn.c-cpp)