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.
Shashank and the Palindromic Strings
Shashank and the Palindromic Strings
Sort by
recency
|
8 Discussions
|
Please Login in order to post a comment
Here is my solution in java, C, C++, Csharp HackerRank Shashank and the Palindromic Strings
Here is Shashank and the Palindromic Strings problem solution - https://programs.programmingoneonone.com/2021/07/hackerrank-shashank-and-the-palindromic-strings-problem-solution.html
C solution
The answer to Test Sample 0, query 3 is wrong. For the Test Sampel 0, Expected output is: 5 0 9
While it should be: 5 0 7
The 7 palindromic string for input abc, abc are: aa bb bab cc cbc aba bcb
Any tips on this one, can't figure out how to write a program that could cope with the size of the possible problem set.