2000. Reverse Prefix of Word
Problem Link: https://leetcode.com/problems/reverse-prefix-of-word/description/
Given a 0-indexed string word and a character ch, reverse the segment of word that starts at index 0 and ends at the index of the first occurrence of ch (inclusive). If t...
sirishachallagiri.hashnode.dev4 min read