โ† Walmart questions

Remove spaces from a string in constant space without built-ins

Filed under Walmart

Remove all space characters from a string without using built-in string functions and with constant extra space. Treat the string as a mutable character array and return the new length.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Walmart questions

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