Print a binary tree level by level
Software Engineer Intern Interview Questions
12,189 software engineer intern interview questions shared by candidates
phone numbers: provided a phone number (654-876-0987), return all possible strings that the phone number could represent if 2 -> {A, B, C}, 3 -> {D, E, F}, and so on common substring: find the biggest common substring in 2 strings, "abcdef" "gbcdh" would return "bcd"
Given a set of points (x,y) and an integer "n", return n number of points which are close to the origin
Given a number n, give me a function that returns the nth fibonacci number. Running time, space complexity, iterative vs. recursive.
How do you find three numbers that sum to 0? (in a list). Now can you do it under O(n^3)?
Find the length of the longest chain of consecutive integers in an unsorted set in linear time.
Given a binary tree, which is not necessarily balanced, print the nodes in the tree in a level-wise manner. Also, nodes on the same level should be printed on a single line. A modification of the question was added later in which I cannot really add a "level" variable in the structure of the node in the tree.
Got asked two questions: 1 - Return the length of the longest sequence of increasing numbers in an unsorted array 2 - Print out a Binary Tree level by level
Given a collection of words, return a collection of anagrams found in the given collection
Given a log of users visit to a site for a day, how would you find returning users given the log visit for another day
Viewing 71 - 80 interview questions