How can one implement a queue with only a stack implementation?
Intern Engineer Interview Questions
15,322 intern engineer interview questions shared by candidates
Implement the functions for a stack and function getMinimum() all with O(1) complexity.
1) Given an array of numbers where each number has a duplicate except one, write a program to return the lone number.
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.
What would you do if you had four projects, one due today, one due in a week, one due in a month and one due in a year?
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.
Viewing 81 - 90 interview questions