Engineer Software Interview Questions

419,836 engineer software interview questions shared by candidates

Given a array (it has some zeros and non-zero numbers), sort it such that all zeros should go to the right side of the array and non-zeros numbers shouldn't change the order ex: 2, 0, 3, 1,0,4 ==> 2,3,1,4,0,0 Conditions: shouldn't use extra space (temp variables ok), should do in 0(n) time
avatar

Software Engineer

Interviewed at Cisco

4.1
Aug 10, 2016

Given a array (it has some zeros and non-zero numbers), sort it such that all zeros should go to the right side of the array and non-zeros numbers shouldn't change the order ex: 2, 0, 3, 1,0,4 ==> 2,3,1,4,0,0 Conditions: shouldn't use extra space (temp variables ok), should do in 0(n) time

Viewing 3391 - 3400 interview questions

See Interview Questions for Similar Jobs

Glassdoor has 419,836 interview questions and reports from Engineer software interviews. Prepare for your interview. Get hired. Love your job.