Software Engineer Testing Interview Questions

36,268 software engineer testing interview questions shared by candidates

Write a program that takes in a string and removes any duplicate spaces (including leading and trailing spaces – there should be none when finished). This program should not have any embedded loops, and you can only traverse the string ONCE. Should definitely be faster than O(n^2).
Feb 28, 2013

Write a program that takes in a string and removes any duplicate spaces (including leading and trailing spaces – there should be none when finished). This program should not have any embedded loops, and you can only traverse the string ONCE. Should definitely be faster than O(n^2).

Viewing 3461 - 3470 interview questions

Glassdoor has 36,268 interview questions and reports from Software engineer testing interviews. Prepare for your interview. Get hired. Love your job.