JPMorgan

1 DSA problems asked in JPMorgan coding interviews

0 Easy
1 Medium
0 Hard
​

1 problem

Strings
1
Break a Palindrome
Medium

Given a palindromic string `palindrome` of lowercase English letters, replace exactly one character with any lowercase letter so that the result is not a palindrome and is the lexicographically smallest string possible. Return the result, or an empty string if no replacement can break the palindrome.