Frontend Engineer Interview Questions

13,291 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.

Viewing 1331 - 1340 interview questions

See Interview Questions for Similar Jobs

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