Front End Developer Intern Interview Questions

12,597 front end developer intern 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 1861 - 1870 interview questions

See Interview Questions for Similar Jobs

Glassdoor has 12,597 interview questions and reports from Front end developer intern interviews. Prepare for your interview. Get hired. Love your job.