Junior Fullstack Developer Interview Questions

4,003 junior fullstack developer interview questions shared by candidates

You are given an array of integers and a target value. Your task is to write a function that returns the indices of the two numbers in the array that add up to the target. Assume that each input will have exactly one solution, and the same element cannot be used twice. For example, if the input array is [10, 20, 30, 40] and the target is 30, the function should return [0, 1] because 10 + 20 = 30. Return the indices as a list or array.

Fullstack Developer

Interviewed at Moksa.ai

4.3
May 28, 2025

You are given an array of integers and a target value. Your task is to write a function that returns the indices of the two numbers in the array that add up to the target. Assume that each input will have exactly one solution, and the same element cannot be used twice. For example, if the input array is [10, 20, 30, 40] and the target is 30, the function should return [0, 1] because 10 + 20 = 30. Return the indices as a list or array.

Viewing 2861 - 2870 interview questions

Glassdoor has 4,003 interview questions and reports from Junior fullstack developer interviews. Prepare for your interview. Get hired. Love your job.