Software Engineer Sr Interview Questions

67,420 software engineer sr interview questions shared by candidates

Given an array of integers (arr[int]) and a target (int). I want you to return the indices of 2 numbers sum. For example, given the array [2, 7, 11, 15] and a target of 9, the function should return [0, 1], indicating that the numbers at indices 0 and 1 (i.e., 2 and 7) add up to the target sum of 9.
avatar

Senior Software Engineer

Interviewed at Prediktive

4.6
Mar 18, 2024

Given an array of integers (arr[int]) and a target (int). I want you to return the indices of 2 numbers sum. For example, given the array [2, 7, 11, 15] and a target of 9, the function should return [0, 1], indicating that the numbers at indices 0 and 1 (i.e., 2 and 7) add up to the target sum of 9.

First they asked simple OOP questions followed by 2 java programs I would say they are easy level. 1. First program is verify if a given number is prime. I did it and tried to enhance it for optimal solution. Interviewer was looking for specific optimal condition which I didnt provided. 2. Second program is given an integer array and a sum find 2 numbers in array whose sum is equal to given number. Again looking for optimal solution, interviewer given tip to use a hash set .
avatar

Senior Software Engineer

Interviewed at Cvent

3.6
Mar 16, 2022

First they asked simple OOP questions followed by 2 java programs I would say they are easy level. 1. First program is verify if a given number is prime. I did it and tried to enhance it for optimal solution. Interviewer was looking for specific optimal condition which I didnt provided. 2. Second program is given an integer array and a sum find 2 numbers in array whose sum is equal to given number. Again looking for optimal solution, interviewer given tip to use a hash set .

Viewing 2241 - 2250 interview questions

Glassdoor has 67,420 interview questions and reports from Software engineer sr interviews. Prepare for your interview. Get hired. Love your job.