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.
- Prepare
- Algorithms
- Strings
- Palindrome Index
- Discussions
Palindrome Index
Palindrome Index
Sort by
recency
|
1084 Discussions
|
Please Login in order to post a comment
Here is my c++ solution : explanation here https://youtu.be/QjHpvMdfnqs,
my code returning right answer but still showing wrong submission.
// java solution
private static int findIndexOfMismatch(String s) { for(int i=0 ; i
C# failed first tests using if(s == s,Reverse()) It was too slow for the tests - I'd still use it in production for readability though. Here's the final: