Software Development Engineer In Test Interview Questions

5,159 software development engineer in test interview questions shared by candidates

I was asked to write an algorithm in C++ to sort an array. The function I was to write was to take in a string of letters "b" and "r". b = a red ball and r = a blue ball. The function was to return an integer with the least number of swaps needed to separate the balls to be next to their own colors... So for example, RBBR would return 1, since you only need to swap one of the letters to be RRBB or BBRR.
Aug 13, 2009

I was asked to write an algorithm in C++ to sort an array. The function I was to write was to take in a string of letters "b" and "r". b = a red ball and r = a blue ball. The function was to return an integer with the least number of swaps needed to separate the balls to be next to their own colors... So for example, RBBR would return 1, since you only need to swap one of the letters to be RRBB or BBRR.

Viewing 1721 - 1730 interview questions

Glassdoor has 5,159 interview questions and reports from Software development engineer in test interviews. Prepare for your interview. Get hired. Love your job.