Frontend Engineer Interview Questions

12,723 frontend engineer interview questions shared by candidates

Given an array of random numbers, Push all the zero’s of a given array to the end of the array. For example, if the given arrays is {1, 9, 8, 4, 0, 0, 2, 7, 0, 6, 0}, it should be changed to {1, 9, 8, 4, 2, 7, 6, 0, 0, 0, 0}. The order of all other elements should be same. The expected time complexity is O(n) and extra space is O(1).
avatar

Frontend Engineer

Interviewed at upGrad

3.5
Oct 7, 2021

Given an array of random numbers, Push all the zero’s of a given array to the end of the array. For example, if the given arrays is {1, 9, 8, 4, 0, 0, 2, 7, 0, 6, 0}, it should be changed to {1, 9, 8, 4, 2, 7, 6, 0, 0, 0, 0}. The order of all other elements should be same. The expected time complexity is O(n) and extra space is O(1).

A Function is given an Array of integers (arr) and a Number (k) as arguments. The integers in arr must be added together sequentially, and each sum of the integers must be compared to k. If the sum matches k, then it should be documented that a sum matched k. Once arr has been completely looped through, the total number of correct matches should be returned.
avatar

Senior Frontend Engineer

Interviewed at Feedonomics

4.4
Sep 1, 2022

A Function is given an Array of integers (arr) and a Number (k) as arguments. The integers in arr must be added together sequentially, and each sum of the integers must be compared to k. If the sum matches k, then it should be documented that a sum matched k. Once arr has been completely looped through, the total number of correct matches should be returned.

In the interview they asked what were some areas of the assignment that could have been expanded on or improved upon if time wasn't an issue. I mentioned a few things like test coverage, CI/CD, etc. Their feedback in the rejection letter was "If the candidate was aware of these shortcomings, they should have been implemented from the get go."
avatar

Frontend Engineer Apprenticeship

Interviewed at Fetch

3.2
Jan 31, 2023

In the interview they asked what were some areas of the assignment that could have been expanded on or improved upon if time wasn't an issue. I mentioned a few things like test coverage, CI/CD, etc. Their feedback in the rejection letter was "If the candidate was aware of these shortcomings, they should have been implemented from the get go."

Viewing 1281 - 1290 interview questions

See Interview Questions for Similar Jobs

Glassdoor has 12,723 interview questions and reports from Frontend engineer interviews. Prepare for your interview. Get hired. Love your job.