Write an algorithm to find an palindrome
Answers were Sorted based on User's Feedback
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 |
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 |
Explain the procedure & path of s/w in testing?
Inwhat basis the time is allocated for testing the application?
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?
write scenario to check the security of below mentioned URL? www.xyzbank.com/welcomescreen/entry?
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.
INTERVIEW question:- Explain the process in your company?
Any body can tell what are the contents RTM(Requirements Tracebility Matrix)
How did you go about testing a project?
What is regression testing
16.Compatibility testing is testing two application?
can any one tell me wat is dependent and independent scripting?
What are the disadvantages of overtesting?