Implement the functions for a stack and function getMinimum() all with O(1) complexity.
Software Intern Interview Questions
17,740 software intern interview questions shared by candidates
How can one implement a queue with only a stack implementation?
Possible anagrams of a string ...
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)
Given 999 distinct numbers between 1 and 1000, find one/two that is/are missing.
Given only a pointer to an arbitrary node in a singly-linked list, how would you delete that node? Are there any cases where this is impossible?
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.
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.
Viewing 111 - 120 interview questions