You have a building with 100 stories. You also have two glass balls. You can drop the glass balls as many times as you want before they break. How can you find the floor at which they start breaking with the fewest number of drops?
Software Engineer Intern Interview Questions
9,436 software engineer intern interview questions shared by candidates
Create a Priority Queue with all methods.
Write a program to reverse a string
reverse a string
I was asked to write a function which determines that angle between the two clock hands (minute and hour hands) given a time.
Write functions that convert a string to uppercase or lowercase without assuming anything about the alphabet or character set it uses (for instance, do not assume it is in English or ASCII).
Implement a function to solve an string given in reverse polish notation.
The interview problems were fairly straightforward. One was given 2 Nodes in a binary tree, find the closest ancestor and the other one was given a 2D array of people who follow one another, determine who's an influencer(followed by everyone, follows no one). Example: If A[i][j] is true, then person i follows person j.
Perform binary search on a sorted array, of which you don't know the size.
Write code for string search
Viewing 171 - 180 interview questions