Software Engineer Intern Interview Questions

9,749 software engineer intern interview questions shared by candidates

A professor wants to see if two students have cheated when writing a paper. Design a function : hasCheated(String s1,String s2, int N) that evaluates to true if two strings have a common substring of length N. Additional question after implementation. Assume you don't have the possibility of using String.contains() and String.substring(). How would you implement this. Questions about complexity of my solution. Overall a very friendly interviewer, was saying "Good" the entire time, but no idea if he wanted to keep me focused or if it was really good.
avatar

Software Engineer Intern

Interviewed at Meta

3.6
Jan 12, 2014

A professor wants to see if two students have cheated when writing a paper. Design a function : hasCheated(String s1,String s2, int N) that evaluates to true if two strings have a common substring of length N. Additional question after implementation. Assume you don't have the possibility of using String.contains() and String.substring(). How would you implement this. Questions about complexity of my solution. Overall a very friendly interviewer, was saying "Good" the entire time, but no idea if he wanted to keep me focused or if it was really good.

Questions asked included (only) printing the nodes of a linked list in reverse, finding the longest palindrome in a given string, finding maximum subarray sum (similar to Kadane's Algorithm) with the constraint that two numbers in the array that form the max sum cannot be next to each other.
avatar

Software Engineer Intern

Interviewed at Meta

3.6
Feb 27, 2013

Questions asked included (only) printing the nodes of a linked list in reverse, finding the longest palindrome in a given string, finding maximum subarray sum (similar to Kadane's Algorithm) with the constraint that two numbers in the array that form the max sum cannot be next to each other.

There are 9 marbles. All looks exactly same (color, size). But one marble is slightly heavier. You cannot tell the difference with your hand/eyes. But you have a very sensitive and accurate balance (Taraju). You have to pay Rs 1000 each time you use the balance. You need to find out the HEAVIEST marble using the balance least number of time. How many time would you use the balance to find out the heaviest marble?
avatar

Software Developer Intern

Interviewed at ComplianceQuest

4
Oct 3, 2020

There are 9 marbles. All looks exactly same (color, size). But one marble is slightly heavier. You cannot tell the difference with your hand/eyes. But you have a very sensitive and accurate balance (Taraju). You have to pay Rs 1000 each time you use the balance. You need to find out the HEAVIEST marble using the balance least number of time. How many time would you use the balance to find out the heaviest marble?

Viewing 121 - 130 interview questions

Glassdoor has 9,749 interview questions and reports from Software engineer intern interviews. Prepare for your interview. Get hired. Love your job.