Re: Please review my tutorial
From: Michael Mendelsohn (keine.Werbung.1300_at_msgid.michael.mendelsohn.de)
Date: 11/02/04
- Next message: Michael Jørgensen: "uRe: implementing the quadratic sieve"
- Previous message: Michael Mendelsohn: "Re: Link contains spyware (Re: how does the CRC algorithm work?)"
- In reply to: Sathyaish: "Re: Please review my tutorial"
- Next in thread: James Dennett: "Re: Please review my tutorial"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: Michael Jørgensen: "uRe: implementing the quadratic sieve"
- Previous message: Michael Mendelsohn: "Re: Link contains spyware (Re: how does the CRC algorithm work?)"
- In reply to: Sathyaish: "Re: Please review my tutorial"
- Next in thread: James Dennett: "Re: Please review my tutorial"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|