23(May) K-Palindrome
23. K-Palindrome
Problem Description
Input:
str = "abcdecba"
n = 8, k = 1
Output: 1
Explanation: By removing 'd' or 'e' we can make it a palindrome.Input:
str = "abcdefcba"
n = 9, k = 1
Output: 0
Explanation: By removing a single character we cannot make it a palindrome.My Approach
Time and Auxiliary Space Complexity
Code
Contribution and Support
📍Visitor Count
Last updated