1) Given an array of numbers where each number has a duplicate except one, write a program to return the lone number.
Intern Software Engineer Interview Questions
9,436 intern software engineer interview questions shared by candidates
Given an integer N and an array of unsorted integers A find all pairs of numbers within A which add up to N. (This is the only question I can remember and I had trouble thinking of an answer at the time)
Find the largest possible difference in an array of integers, such that the smaller integer occurs earlier in the array.
The dude basically asked me "what weird things have you found in using C?" Odd question...
they asked me to code for such a question: the input was a string and I was supposed to output the longest sub string with only 2 distinct chars in the sub string.
Write a program that sees if two binary trees are equal.
Write a program that reverses the words in a sentence.
A couple tricky questions. One required writing a modified binary search, the other dealt with data structures and how to efficiently check if a given set of numbers contained two numbers summing to some other number x.
Write a function that returns the square root of a number (obviously without using any sort of built-in square root function).
Given a singly linked list, how can you find if there is a loop in the list?
Viewing 81 - 90 interview questions