Computer Scientist Interview Questions

324 computer scientist interview questions shared by candidates

Give an array of integers, replace ith element by following maxmium number. For eg - 2 4 8 7 6 3 2 should be replaced by max num - 8 4 should be replaced by max num - 8 8 should be replaced by max num - 7 7 should be replaced by max num - 6 6 should be replaced by max num - 3 Easy question, start iterating from end , maintain max and keep swaping ith number with max.
avatar

Computer Scientist

Interviewed at Adobe

4.1
Feb 17, 2018

Give an array of integers, replace ith element by following maxmium number. For eg - 2 4 8 7 6 3 2 should be replaced by max num - 8 4 should be replaced by max num - 8 8 should be replaced by max num - 7 7 should be replaced by max num - 6 6 should be replaced by max num - 3 Easy question, start iterating from end , maintain max and keep swaping ith number with max.

Viewing 21 - 30 interview questions

Glassdoor has 324 interview questions and reports from Computer scientist interviews. Prepare for your interview. Get hired. Love your job.