Senior Developer Interview Questions

29,077 senior developer interview questions shared by candidates

Given a list of integers A and an integer k, return the number of unique pairs of integers in A that sum to k. For example, if A=[1 2 5 5 10 8 2] and k=10, the answer is 2, arrived as 5+5 or 2+8. There were 15 tests for this question, with at least the last two timing out, given that the implementation was not as efficient as possible.
avatar

Senior Software Developer

Interviewed at Bloomberg

4
Aug 7, 2016

Given a list of integers A and an integer k, return the number of unique pairs of integers in A that sum to k. For example, if A=[1 2 5 5 10 8 2] and k=10, the answer is 2, arrived as 5+5 or 2+8. There were 15 tests for this question, with at least the last two timing out, given that the implementation was not as efficient as possible.

You have two methods: one method takes long time to run and the other completes in short time. You execute the long method first and after that you execute the short method. Which one will complete first. There is no setTimeout involved.
avatar

Senior UI Developer

Interviewed at ValueLabs

4
Apr 30, 2015

You have two methods: one method takes long time to run and the other completes in short time. You execute the long method first and after that you execute the short method. Which one will complete first. There is no setTimeout involved.

Viewing 11 - 20 interview questions

Glassdoor has 29,077 interview questions and reports from Senior developer interviews. Prepare for your interview. Get hired. Love your job.