Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


A table containing decimal nos. from 1 to 100 and their
roman Equivalent was given. We were required to write a
function : char* ConverToRoman(int number) : to
convert the given number( 1<=number<=100) into its numerical
equivalent.

I want a solution in C/C++ language



A table containing decimal nos. from 1 to 100 and their roman Equivalent was given. We were require..

Answer / monu rohila

public static string GetPalindromeString(string theInputString)
{

int j = 0;
int k = 0;
string aPalindrome = string.Empty;
string aLongestPalindrome = string.Empty ;
for (int i = 1; i < theInputString.Length; i++)
{
k = i + 1;
j = i - 1;
while (j >= 0 && k < theInputString.Length)
{
if (theInputString[j] != theInputString[k])
{
break;
}
else
{
j--;
k++;
}
aPalindrome = theInputString.Substring(j + 1, k - j - 1);
if (aPalindrome.Length > aLongestPalindrome.Length)
{
aLongestPalindrome = aPalindrome;
}
}
}
return aLongestPalindrome;
}
`

Is This Answer Correct ?    1 Yes 14 No

Post New Answer

More General Aptitude Interview Questions

which company is invented the tally software.

6 Answers   UGC NET,


two workers can type two pages in two minuets then how many persons can type 18 pages in 6 minuets

0 Answers   Google,


If "basis points" are defined so that 1 percent is equal to 100 basis points, then 75.5 percent is how many basis points greater than 65.5 percent?

5 Answers   Wipro,


Using the digits 1,5,2,8 four digit numbers are formed and the sum of all possible such numbers.

0 Answers   Accenture,


I have applied for AAI Jr.Executive for 2009 batch.plz tell me the syllabus for that paper.my id is rahulaswal07@gmail.com

0 Answers   AAI Airports Authority Of India,


Current/most recent employer (Please state full names and address including Country and post code) Current Position Held When would you be available to start work? ONLINE INTERVIEW [INSTRUCTIONS: Give brief answers to all the under listed questions] QUESTIONS ANSWER SPACE 1) What are your years of experience? 2) How do you approach a technical problem? Give an example. How long do you think it would be before you will make a significant contribution to the team/company?

0 Answers  


The speed ratio of two trains is 5:7,first train is travelling at a speed of 350 km/hr, what is the speed of the second train?

3 Answers  


1027.05 ? 314.005 + 112.25 = ? (a) 825.395 (b) 825.095 (c) 825.305 (d) 825.295 (e) None of these

7 Answers   CTS,


how to create the alarm using sql queries.In the sense i need to make the computer to produce beep sound for each 1 minute.(hint: by chr(7) we can produce the beep sound)

0 Answers  


WHAT IS CALLED FLYING IN AEROPLANE?

4 Answers  


A ship started from port and moving with I mph and another ship started from L and moving with H mph. At which place these two ships meet ?

0 Answers   Accenture,


Ben can have a piece of work done in 8 days, Joe can work three times faster than the Ben, Ram can work five times faster than Ben. How many days will they take to do the work together ?

3 Answers  


Categories