Implement the functions for a stack and function getMinimum() all with O(1) complexity.
Engineer Intern Interview Questions
15,322 engineer intern interview questions shared by candidates
How can one implement a queue with only a stack implementation?
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?
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.
The dude basically asked me "what weird things have you found in using C?" Odd question...
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