Write a function that given a certain name as an argument, fetches it from an ordered set of data. Refactor code to optimize performance.
Frontend Engineer Interview Questions
12,723 frontend engineer interview questions shared by candidates
3. To test CSS, I was asked to style two squares of different sizes one inside the other (like a concentric circle)
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).
How react works?
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.
What the issue in the provided code?
Are you considering relocation to Luxembourg?
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."
What is your experience like with frontend testing?
Q: Draw a system design from a past project
Viewing 1281 - 1290 interview questions