10788 - Parenthesizing Palindromes

All about problems in Volume 107. If there is a thread about your problem, please use it. If not, create one with its number in the subject.

Moderator: Board moderators

sq
New poster
Posts: 3
Joined: Sun Jan 02, 2005 9:15 am

Post by sq »

stubbscroll wrote:Try this case, I used it to debug my program:

Code: Select all

1
abaaba

Code: Select all

Case 1: Valid, Unique
My program got it correct.
Gosh... I've spent so much time on this problem... It shouldn't be difficult :(
smilitude
Experienced poster
Posts: 137
Joined: Fri Jul 01, 2005 12:21 am

Post by smilitude »

anyone getting confused with the problem statement and misof's definition, plz just re-read this lines, you'll get everything at a glance!
... we find many of the editors and spreadsheet applications using colors or emphasized fonts to show the nesting of the parenthesis structure...
....
We may not have colors but we have different letters.
each bracket is turned into a letter! thats all!
this is good problem in sense of "understanding the problem statement"
fahim
#include <smile.h>
Moad
New poster
Posts: 1
Joined: Sat Nov 29, 2014 9:51 pm

Re: 10788 - Parenthesizing Palindromes

Post by Moad »

Here is a good special case:

abcdefgabcdefggfedcbagfedcba


Result :Valid, Unique
Post Reply

Return to “Volume 107 (10700-10799)”