We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
The testcase 11 and 14 are not checking for both correct answer. I have verified it for test case 11. My answer is 8, while that in output file is 44. Both are correct as the indexes are wc and cw being compared and any of c and w can be removed.
The string is:
hgygsvlfcwnswtuhmyaljkqlqjjqlqkjlaymhutwsnwcwflvsgygh
Palindrome Index
You are viewing a single comment's thread. Return to all comments →
The testcase 11 and 14 are not checking for both correct answer. I have verified it for test case 11. My answer is 8, while that in output file is 44. Both are correct as the indexes are wc and cw being compared and any of c and w can be removed. The string is: hgygsvlfcwnswtuhmyaljkqlqjjqlqkjlaymhutwsnwcwflvsgygh