Software Engineer Web Developer Interview Questions

23,598 software engineer web developer interview questions shared by candidates

Given an array, we have to find out next largest element in that array with less than O(n^2) complexity for all elements, if there is no next large element, return -1 e.g. Array is { 2, 5, 3, 8,6 } answer should be : {5, 8, 8, -1, -1}
avatar

Associate Web Developer

Interviewed at Media.net

3.6
Sep 20, 2017

Given an array, we have to find out next largest element in that array with less than O(n^2) complexity for all elements, if there is no next large element, return -1 e.g. Array is { 2, 5, 3, 8,6 } answer should be : {5, 8, 8, -1, -1}

Viewing 3411 - 3420 interview questions

Glassdoor has 23,598 interview questions and reports from Software engineer web developer interviews. Prepare for your interview. Get hired. Love your job.