Given a set of cities, each with a given population, select randomly a city with a probability that is proportional to the population.
Intern Software Interview Questions
17,740 intern software 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?
Reverse the word order in a string.
if A! + B! + C! = ABC and A, B, C are single digit numbers, find A, B, and C.
counting sort, binary tree preorder traversal, binary tree inorder traversal, keys and boxes (leetcode 1298)
Given a file system and a list of files you have access to, you can access a file if you either have direct access or you have access to its parent directory.
Write a function to swap n bits of a variable from position x and position y
given an array of strings, find all the lists of anagrams present.
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.
1. Given two strings, determine whether they are anagrams. 2. Given a list of strings, return a list of lists of strings, which represents the list grouping strings by whether they are anagrams of one another.
Viewing 201 - 210 interview questions