Write a function that prints a binary tree level-by-level.
Intern Interview Questions
249,890 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!
What is dense wavelength division multiplexing (DWDM)?
I was given a short function in C (dictated because we were hanging on a phone): int foo(int a) { int result = 0; while (a >>= 1) result += 1 return result } And my task was to say what's wrong with this function, what's its purpose and what would I write my colleague who submitted it for a code review
depth first search of a array in a non-recursive manner without using extra memory
Given an array of integers, find all pairs that will add to a given integer.
Are you more of a social person or an analytical person?
Find two integers in an unsorted array that produced a certain sum in linear time.
Technical Question. Given a string such as 3 + 2 / 5 - 3 * 4, calculate it.
Given a mathematical expression, what data structure would you use to evaluate the expression? How would you design the above question to use Trees/Graphs.
Viewing 1451 - 1460 interview questions