Normalize Spaces and Reverse Words in a String In-Place
Filed under Knowlarity
The question
Given a string with multiple spaces and tabs between words, normalize whitespace to single spaces and reverse the word order in-place without using an auxiliary array.
No write-up yet. Related questions below have one.
Related Knowlarity questions
Collected from public candidate posts and coding forums. Updated Nov 2026.