โ† Samsung questions

Reverse words in a string without extra space

Filed under Samsung

The question

Given a string, reverse it word wise in O(N) time without using any extra space.

No write-up yet. Related questions below have one.

Related Samsung questions

Collected from public candidate posts and coding forums. Updated Nov 2026.