Frontend Engineer Interview Questions

13,298 frontend engineer interview questions shared by candidates

Given an object with an ID and array of dependancies that reference other IDs within the main object, create a function that accepts the main object and the desired ID such that the output would be all the dependancies, then the given ID. EX: all = [ {id:1, dep:[4,5]}, {id:4, dep:[6]}, {id:5, dep:[]}, {id:6, dep:[]} ] func(all, 1) => 6,4,5,1
avatar

Senior Frontend Engineer

Interviewed at Vanta

3.3
Jan 23, 2025

Given an object with an ID and array of dependancies that reference other IDs within the main object, create a function that accepts the main object and the desired ID such that the output would be all the dependancies, then the given ID. EX: all = [ {id:1, dep:[4,5]}, {id:4, dep:[6]}, {id:5, dep:[]}, {id:6, dep:[]} ] func(all, 1) => 6,4,5,1

First leetcode was the coin change problem, but you can use a greedy algorithm to solve it since the denominations include a 1 dollar coin. If you solve it fast they follow up with a very easy tree navigating problem. The second leet code was related to RegEx where they invent a regular expression to match strings, and you build an algorithm that performs the match. Much easier than it sounds, just think it through. The takehome assignment takes between 6-10 hours and involve building an application that displays statistics about your current and historical CPU load. They give you a lot of good hints, so focus on making it pretty and flashy. The "system design" interview is just a UI interview in disguise. They'll describe an application and you just have to come up with what the UI looks like, and ask questions about tradeoffs and what the user's requirements are. Don't dive into system design details, because they will ask you to get back on task with the UI stuff.
avatar

Software Engineer(Frontend)

Interviewed at Datadog

4
Sep 29, 2020

First leetcode was the coin change problem, but you can use a greedy algorithm to solve it since the denominations include a 1 dollar coin. If you solve it fast they follow up with a very easy tree navigating problem. The second leet code was related to RegEx where they invent a regular expression to match strings, and you build an algorithm that performs the match. Much easier than it sounds, just think it through. The takehome assignment takes between 6-10 hours and involve building an application that displays statistics about your current and historical CPU load. They give you a lot of good hints, so focus on making it pretty and flashy. The "system design" interview is just a UI interview in disguise. They'll describe an application and you just have to come up with what the UI looks like, and ask questions about tradeoffs and what the user's requirements are. Don't dive into system design details, because they will ask you to get back on task with the UI stuff.

Viewing 1781 - 1790 interview questions

See Interview Questions for Similar Jobs

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