Software Engineer Front End Interview Questions

933 software engineer front end interview questions shared by candidates

There is a HashMap contains 7 Keys, which is Monday through Sunday. Each key is corresponding to a List of (Start time, end time) pairs. The pairs is unsorted. What I have to do is to merge the time slots that are adjacent. And finally return another HashMap that contains the same structure but with merged time slots.
avatar

Back-end Software Engineer Intern

Interviewed at Yelp

3.2
Oct 16, 2016

There is a HashMap contains 7 Keys, which is Monday through Sunday. Each key is corresponding to a List of (Start time, end time) pairs. The pairs is unsorted. What I have to do is to merge the time slots that are adjacent. And finally return another HashMap that contains the same structure but with merged time slots.

Can you explain the difference between the Task (Macrotask) Queue and the Microtask Queue in the JavaScript Event Loop? Specifically, how does the browser prioritize Promise resolutions over scheduled callbacks from a setTimeout function, and what impact does this have on UI rendering performance?
avatar

Software Engineer - Front End

Interviewed at Amazon

3.5
Mar 25, 2026

Can you explain the difference between the Task (Macrotask) Queue and the Microtask Queue in the JavaScript Event Loop? Specifically, how does the browser prioritize Promise resolutions over scheduled callbacks from a setTimeout function, and what impact does this have on UI rendering performance?

Viewing 771 - 780 interview questions

Glassdoor has 933 interview questions and reports from Software engineer front end interviews. Prepare for your interview. Get hired. Love your job.