Find the longest palendrom in a string?
Example
Input: abfgerccdedccfgfer
Output: ccdedcc
i want a solution in C/C++ language


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More General Aptitude Interview Questions

What kind of questions are there in Harbinger Aptitutde test paper(for 2011)and their paper pattern?Plz reply urgently.

0 Answers   Harbinger,


If any1 have previous NIC Papers, plz send it to nads707@gmail.com....

0 Answers  


Q) A new apartment complex purchased 60 toilets and 20 shower heads. If the price of a toilet is three times the price of a shower head, what percent of the total cost was the cost of all the shower heads? a) 9% b) 10% c) 11% d) 13% e) 15%

3 Answers  


A,H,S,I,?,H,D

4 Answers   Accenture, ICICI,


Mr. Rahul spends 30% of his monthly salary on domestic expenses. He spends respectively 20% and 10% of the remaining salary on education of children and conveyance. Of the remaining amounts now he spends respectively 20% and 30% on entertainment and maintenance of house. He saves Rs. 5512.50. what is the monthly salary of Mr. Rahul? (a) Rs. 22,500 (b) Rs. 20,000 (c) Rs. 25,000 (d) Rs. 24,500 (e) None of these

2 Answers   Banking, State Bank Of India SBI,






Hi Guys. I am an Instrumentation and Control Engineer(ICE) and have filled various PSU entrance exam forms. I wanted to know if anyone of you out there had any material for the preparation of the same. Any sort of material will be greatly appreciated. Be it previous year questions (Aptitude, GK or Technical) , study material or links to websites which do have this material. PSUs that I am going to appear in are HPCL, SAIL, ECIL and finally Gate. Any suggestions and advice is greatly welcomed. My E-Mail ID is kris_sreekanth86@yahoo.co.in

0 Answers   Sail,


If A, B and C are the mechanisms used separately to reduce the wastage of fuel by 30%, 20% and 10%. What will be the fuel economy if they were used combined.

0 Answers   Accenture, BSNL,


what is the difference between deviation & change control? what is trouble shooting?

1 Answers   Zydus Cadila,


2435/24=24?

4 Answers   HDFC, TCS,


Mr. Jaweri decided to walk down the escalator on the station. He found that if he walks down 26 steps, he requires 30 seconds to reach the bottom. However, if he steps down 34 stairs he would only require 18 seconds to get to the bottom. If the time is measured from the moment the top step begins to descend to the time he steps off the last step at the bottom, find out the height of the stair way in steps?

0 Answers   3i Infotech,


Volcano : Lava :: A.) water:swim B.) tunnel:dig C.) crack:wall D.) Fault:earthquate

8 Answers  


In a mixture, R is 2 parts and S is 1 part. In order to make S to 25% of the mixture, how much of R is to be added? explain how can i solve it??

4 Answers   Deloitte, TCS,


Categories