Test Engineer Interview Questions

25,336 test engineer 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 2321 - 2330 interview questions

Glassdoor has 25,336 interview questions and reports from Test engineer interviews. Prepare for your interview. Get hired. Love your job.