I was trying to modify the recursive solution given to the problem " Longest Palindromic Substring" to return longest palindromic substring itself rather than length. Appreciate if someone can help on it.
Along with the variable
remainingLength, update the
endIndex and use them to extract the palindromic substring.
Hope this helps Happy learning