Write a function that prints a binary tree level-by-level.
Intern Interview Questions
249,022 intern interview questions shared by candidates
A few years ago, Sprint decided that they will make phone calls from cellphone-cellphone free! There is a legend that a guy who was 20 years old by that time decided to call every single cellphone in the united states, and when he was 80 years old he finished doing all that calls. Is that possible? prove it!
Given a library of numbers to corresponding letters (1 = a, 2 = b, 3 = c, etc.) and a string made up of digits, return how many different ways those digits can be translated to letters. ex: “1111”: “aaaa” “kaa” “aka” “aak” “kk” => 5 different ways
Write a function that receives a regular expression (allowed chars = from 'a' to 'z', '*', '.') and a string containing lower case english alphabet characters and return true of false whether the string matches the regex. Do this recursively. Examples: 1) "ab*a", "abbbbba" -> true 2) "ab*b.", "aba" -> true 3) "abc*", "acccc" -> false
To find the minimum number of weighing required to find the lighter box among 8 boxes using a balance.
clone graph conver bst to linked list
Write a program that takes an input an array of positive numbers and shifts all the zeros (0s) to the right.
Given an array of ints, find the max and return the index of the maximum. If there are multiple occurrences of the maximum, return an index of one of these occurrences randomly.
Find the smallest k element in an unsorted array Two Sum Best time to buy and sell stock
What are the major principles of the object oriented programming?
Viewing 1461 - 1470 interview questions