โ† Visa questions

Replace all 0's with 5's without extra space

Filed under Visa

Given a positive integer, replace all occurrences of the digit 0 with 5. Do this without using additional space (e.g., without converting to a string of large length or using extra data structures).

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 Visa questions

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