You have a box of red balls, a box of blue balls, and a box of red and blue balls. What is the minimum number of boxes you can open and know what is the contents of each box?
Intern Engineer Interview Questions
24,104 intern engineer interview questions shared by candidates
Print a binary tree level by level in zigzag order
Two texts are considered to "match" if they have a common substring of at least length n. Describe an algorithm to determine if two strings are matches.
Implement integer division
Write the code for the preorder traversal of a tree.
Stuff like linked lists & basic recursion
Logical Reasoning Goal: The person to reach 50 first wins. Rules: Play with another person, say a number, and the other person can say any number upto 10 over your number.
Implement the functions for a stack and function getMinimum() all with O(1) complexity.
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.
Viewing 101 - 110 interview questions