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...


Write an algorithm to find an palindrome

Answers were Sorted based on User's Feedback



Write an algorithm to find an palindrome..

Answer / sagai

boolean isPalindrome(string s){
char[] letters = s.toCharArray() //convert string to
array of characters
int firstCnt = 0 //counter for left side
int secCnt = letters.length - 1 //counter for right
side
while (firstCnt < secCnt){ //work toward middle
if (letters[firstCnt] != letters[secCnt]){
return false //if left and right does not
match, is not a palindrome
}
firstCnt++
secCnt--
}
return true //if loop completes without a false, is a
palinrome
}

Is This Answer Correct ?    20 Yes 9 No

Write an algorithm to find an palindrome..

Answer / nandan_101

boolean isPalindrome(string s){
char[] letters = s.toCharArray() //convert string to
array of characters
int firstCnt = 0 //counter for left side
int secCnt = letters.length - 1 //counter for right
side
while (firstCnt < secCnt){ //work toward middle
if (letters[firstCnt] != letters[secCnt]){
return false //if left and right does not
match, is not a palindrome
}
}
return true //if loop completes without a false, is a
palinrome
}boolean isPalindrome(string s){
char[] letters = s.toCharArray() //convert string
<strong class="highlight">to</strong> array of characters
int firstCnt = 0 //counter for left side
int secCnt = letters.length - 1 //counter for right
side
while (firstCnt < secCnt){ //work toward middle
if (letters[firstCnt] != letters[secCnt]){
return false //if left and right does not
match, is not a <strong
class="highlight">palindrome</strong>
}
}
return true //if loop completes without a false, is a
palinrome
}

Is This Answer Correct ?    5 Yes 18 No

Post New Answer

More Manual Testing Interview Questions

Explain the procedure & path of s/w in testing?

0 Answers  


Inwhat basis the time is allocated for testing the application?

0 Answers  


winrunner q's..(if winrunner 1.explain types of recording modes? 2.how winrunner recognize GUI objects? 3.what is there in GUI map editor? 4.explain types of checkpoints? 5.syncronization point? 6.diff. between wait st. and synchornization? 7.diff.between is treturn & texit? 8.diff between tl_step and report_msg? 9.what is data driven test? 10how we parameterize the variable? 11.some ddt commands? 12.why we need to automate ? 13.explain database checkpoints with connectivity? 14.diff..between compiler module and main script? 15.expain in,out,inout parameters? 16.function generator? 17. Search path,breakpoints? 18.diff between step,step in,step out?

2 Answers   BeBo Technologies,


write scenario to check the security of below mentioned URL? www.xyzbank.com/welcomescreen/entry?

2 Answers  


hi friends, i have completed course and project on insurance domain in mindq testing institution...can any working employee please tell me ,which notes( testing subject notes,project notes)i have to prefer first.i was studied both notes and getting confussion.one of my friend got job throughly only project notes and said that project notes is enough to get job.in which way ,i have to prepare interview( which important topics first ), if you are follow any strategy to interview purpose,pls send me important topics list.

0 Answers   Infosys,


INTERVIEW question:- Explain the process in your company?

3 Answers   ABC, Mind Tree,


Any body can tell what are the contents RTM(Requirements Tracebility Matrix)

2 Answers  


How did you go about testing a project?

2 Answers   HCL,


What is regression testing

13 Answers   Satyam,


16.Compatibility testing is testing two application?

2 Answers   Hewitt,


can any one tell me wat is dependent and independent scripting?

0 Answers   Cap Gemini,


What are the disadvantages of overtesting?

2 Answers   IBM,


Categories