Front End Developer Interview Questions

12,592 front end developer interview questions shared by candidates

We are given an array asteroids of integers representing asteroids in a row. For each asteroid, the absolute value represents its size, and the sign represents its direction (positive meaning right, negative meaning left). Each asteroid moves at the same speed. Find out the state of the asteroids after all collisions? If two asteroids meet, the smaller one will explode. If both are the same size, both will explode. Two asteroids moving in the same direction will never meet.
avatar

Front End Developer

Interviewed at Amazon

3.5
Jul 13, 2025

We are given an array asteroids of integers representing asteroids in a row. For each asteroid, the absolute value represents its size, and the sign represents its direction (positive meaning right, negative meaning left). Each asteroid moves at the same speed. Find out the state of the asteroids after all collisions? If two asteroids meet, the smaller one will explode. If both are the same size, both will explode. Two asteroids moving in the same direction will never meet.

2nd technical round, the interviewer asked: 1.Merging point of a linked list 2.Dijkstra's algorithm 3.Distance between two nodes in a tree 4.Given string and indexes, concatinate the string according to the index given.
avatar

Front End Developer

Interviewed at Cimpress

4
Jan 12, 2021

2nd technical round, the interviewer asked: 1.Merging point of a linked list 2.Dijkstra's algorithm 3.Distance between two nodes in a tree 4.Given string and indexes, concatinate the string according to the index given.

Viewing 1001 - 1010 interview questions

Glassdoor has 12,592 interview questions and reports from Front end developer interviews. Prepare for your interview. Get hired. Love your job.