Computers Interview Questions

5,414 computers 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 541 - 550 interview questions

Glassdoor has 5,414 interview questions and reports from Computers interviews. Prepare for your interview. Get hired. Love your job.