You have two sorted arrays - how can you effectively merge them into one giant sorted array?
Software Engineer Intern Interview Questions
9,334 software engineer intern interview questions shared by candidates
How would you traverse through a binary search tree and print out each element in order?
Print the BST in level order
Implement a selection sort, and then he asked me: Given a single-elimination tournament with 99 players, how many games must be played until there is one winner left.
There are ten buckets of lead weights, with nine of them having equal weights of 10 grams each, while one of them has weights of 11 grams each. You want to find out which bucket has weights of 11 grams each, by using a scale, but you can only turn on the scale once.
Given a set of cities, each with a given population, select randomly a city with a probability that is proportional to the population.
This was one of the more standard questions. You have stairs with N number of steps. You can take either one step steps or two step steps; how many ways can you climb the stairs?
Reverse the word order in a string.
counting sort, binary tree preorder traversal, binary tree inorder traversal, keys and boxes (leetcode 1298)
given an array of strings, find all the lists of anagrams present.
Viewing 131 - 140 interview questions