DSA Day 95/100
Topic: Strings
1) Reverse Words in StringMedium
Input: s = "a good example"
Output: "example good a"
Explanation: You need to reduce multiple spaces between two words to a single space in the reversed string.
public String reverseWords(String s) ...
preetikaprakash.hashnode.dev1 min read