Implement the functions for a stack and function getMinimum() all with O(1) complexity.
Software Engineer Intern Interview Questions
9,747 software engineer intern interview questions shared by candidates
Find the largest possible difference in an array of integers, such that the smaller integer occurs earlier in the array.
5 Guys went for dinner.. and were going to sit on a round table having 5 seats.. their birthdays are not same .. probability of getting them seated in inc/dec order of their age.
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.
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.
Linked list memory management: deleting a node from the middle of a list was easy. Next question - how to delete a node from the end of a list. Was too tired to think and realize this was a trick question.
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?
Most difficult question was how would I design an algorithm to find the most frequently searched word in google search
Viewing 61 - 70 interview questions