Software Engineer Front End Interview Questions

13,485 software engineer front end interview questions shared by candidates

Problem: Given an array of numbers sorted in an ascending order, find the ceiling of a given number ‘key’. The ceiling of the ‘key’ will be the smallest element in the given array greater than or equal to the ‘key’. Write a function to return the index of the ceiling of the ‘key’. If there isn’t any ceiling return -1.
avatar

Front End Developer

Interviewed at Amazon

3.5
Oct 29, 2020

Problem: Given an array of numbers sorted in an ascending order, find the ceiling of a given number ‘key’. The ceiling of the ‘key’ will be the smallest element in the given array greater than or equal to the ‘key’. Write a function to return the index of the ceiling of the ‘key’. If there isn’t any ceiling return -1.

Viewing 1971 - 1980 interview questions

Glassdoor has 13,485 interview questions and reports from Software engineer front end interviews. Prepare for your interview. Get hired. Love your job.