Computer Technology Interview Questions

4,333 computer technology 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 511 - 520 interview questions

Glassdoor has 4,333 interview questions and reports from Computer technology interviews. Prepare for your interview. Get hired. Love your job.