You got some baby bottle samples. You would like to know the max height you can drop it without breaking the bottle. Let set the unit as 1 foot. And the highest height you can reach is at N feet. So how would you find the (max) safe height?
Software Development Intern Interview Questions
2,988 software development intern interview questions shared by candidates
How would you sort an array if you had infinite RAM? Infinite memory?
Connect Four is a game where two players take turns dropping their color discs into a vertically suspended grid. The game ends when a player adds a disc to the playing grid that connects four discs of their color. The connected discs can be in a horizontal, vertical or diagonal line. Write a function to be called after every turn that returns true if the game is over (and false otherwise).
Given an array of n unsorted ints, with the condition that each number is at most k positions away from its final sorted position, give an efficient sorting algorithm.
Q) How would you all values from the nodes of a given binary tree into a string and then deserialize the string and put it back in the binary tree?
Find depth of a binary tree
Reverse a linked list
Given a 5x5 board containing random characters, find all words that can be formed from consecutive adjacent (diagonals count) characters.
in an array of characters find the character that is repeated the most
Consider a simple array. What is the time complexity to insert, search, delete an element?
Viewing 41 - 50 interview questions