Blog
Reverse Prefix of Word: Beautiful Approaches to LC-2000
Reverse Prefix of Word: Given a 0-indexed string word and a character ch, reverse the word segment that starts at index 0 and ends at the index of the first…
Reverse Prefix of Word: Given a 0-indexed string word and a character ch, reverse the word segment that starts at index 0 and ends at the index of the first…