Given a set of cities, each with a given population, select randomly a city with a probability that is proportional to the population.
Software Engineer Intern Interview Questions
9,749 software engineer intern interview questions shared by candidates
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?
counting sort, binary tree preorder traversal, binary tree inorder traversal, keys and boxes (leetcode 1298)
if A! + B! + C! = ABC and A, B, C are single digit numbers, find A, B, and C.
Technical Given an unsorted array of numbers (that may contain repeated numbers), print or produce a data structure that contains all the pairs that have a sum equal to a number k. Do not include pairs that are the same numbers in a different order. Ex. [3,2,6,2,0,5,3,8,7,10] [(0,10),(2,8),(3,7)]
Convert a binary tree into a circular doubly linked list. The order of the elements in the linked list have to be the order of elements you get when you do an in order traversal of the binary tree.
given an array of strings, find all the lists of anagrams present.
How will you make this code readable (given a piece of code)
Write a minPeak function for a stack (function that returns the minimum element in the stack).
From a tree, get a List of a List of Integers where each List of Integers corresponds to all ints at depth i from the root.
Viewing 101 - 110 interview questions