Frontend Software Engineer Interview Questions

869 frontend software engineer interview questions shared by candidates

** * ## Balanced Binary Tree Visualization * * Task: * Create a balanced binary tree visualization using nested squares where: * - Root: One square * - Level 1: Two squares side by side * - Level 2: Two squares inside each Level 1 square * * Colors should be assigned in pre-order traversal: * (root -> left subtree -> right subtree) * * Input: * const VIBGYOR_colors_named = [ * 'Violet', * 'Indigo', * 'Blue', * 'Green', * 'Yellow', * 'Orange', * 'Red' * ]; * * Expected color assignment: * - Root: Violet * - Left subtree: Indigo (parent) -> Green, , Yellow (children) * - Right subtree: Blue (parent) -> Orange, Red (children) */ second dsa question was based on concentric square which was easy to solve and solved it.
avatar

Frontend Software Engineer

Interviewed at Amazon

3.5
Aug 8, 2025

** * ## Balanced Binary Tree Visualization * * Task: * Create a balanced binary tree visualization using nested squares where: * - Root: One square * - Level 1: Two squares side by side * - Level 2: Two squares inside each Level 1 square * * Colors should be assigned in pre-order traversal: * (root -> left subtree -> right subtree) * * Input: * const VIBGYOR_colors_named = [ * 'Violet', * 'Indigo', * 'Blue', * 'Green', * 'Yellow', * 'Orange', * 'Red' * ]; * * Expected color assignment: * - Root: Violet * - Left subtree: Indigo (parent) -> Green, , Yellow (children) * - Right subtree: Blue (parent) -> Orange, Red (children) */ second dsa question was based on concentric square which was easy to solve and solved it.

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 111 - 120 interview questions

Glassdoor has 869 interview questions and reports from Frontend software engineer interviews. Prepare for your interview. Get hired. Love your job.