Software Engineering Interview Questions

56,348 software engineering interview questions shared by candidates

You're given an array of numbers, and you want to find 3 numbers that sum to 0 and output those 3 numbers. You can use each number multiple times. So if you're given the array [-1, 1, 2], you would output [-1, -1, 2] because -1 -1 +2=0
avatar

Software Engineering Intern

Interviewed at Meta

3.6
Aug 6, 2015

You're given an array of numbers, and you want to find 3 numbers that sum to 0 and output those 3 numbers. You can use each number multiple times. So if you're given the array [-1, 1, 2], you would output [-1, -1, 2] because -1 -1 +2=0

Given an array of length N containing numbers bounded between 1 and N with exactly one duplicate, determine what the duplicate number is in O(n) time without using more than constant memory (no making new arrays of N length).
avatar

Software Engineering Intern

Interviewed at Microsoft

4
Oct 28, 2015

Given an array of length N containing numbers bounded between 1 and N with exactly one duplicate, determine what the duplicate number is in O(n) time without using more than constant memory (no making new arrays of N length).

1. find the dominator of an array with 1,000,000 element and complete within O(n) complexity 2. find the element P in an array which all the elements before P less than or equal to P and the elements after P larger than to equal to P.
avatar

Software Engineering

Interviewed at Block

3.3
Sep 19, 2012

1. find the dominator of an array with 1,000,000 element and complete within O(n) complexity 2. find the element P in an array which all the elements before P less than or equal to P and the elements after P larger than to equal to P.

The question was asked in the personal interview. You are climbing a stair case. It takes n steps to reach to the top. Each time you can either climb 1 or 2 steps. Write a program which computes in how many distinct ways can you climb to the top.
avatar

Software Engineering Intern

Interviewed at VMware

4.4
Mar 12, 2015

The question was asked in the personal interview. You are climbing a stair case. It takes n steps to reach to the top. Each time you can either climb 1 or 2 steps. Write a program which computes in how many distinct ways can you climb to the top.

Viewing 41 - 50 interview questions

Glassdoor has 56,348 interview questions and reports from Software engineering interviews. Prepare for your interview. Get hired. Love your job.