Search posts, tags, users, and pages
Tapan Rachchh
class Solution: def reversePrefix(self, word: str, ch: str) -> str: index = word.find(ch) if index > -1: first = word[:index + 1] second = word[index + 1:] return first[::-1] + second el...
No responses yet.