There are two linked lists, each around million nodes long. One linked list merges into the second one. Find the node where the two linked lists merge i.e find the first node that is part of both linked lists.
Intern Software Interview Questions
17,742 intern software interview questions shared by candidates
Halloween has just happened, and all of the kids in the neighborhood have candy. 5 of them are standing in a circle comparing stashes, when one of them (kid 0) gets the idea to steal his neighbor's (kid 1's) candy. Kid 1 gets upset and runs away crying. Kid 2 sees kid 0 stealing from kid 1, thinks that he could do that too, and steals kid 3's candy. Kid 4 sees kid 2, and steals from kid 0, and so on and so forth until there's only one kid left. Given n children, find the index of the last kid remaining.
Write a program that verifies that a binary tree is a binary search tree.
1) Why Bloomberg ? 2) 1 thing you would like to change about Bloomberg ? 3) They will grill you on your resume. Know every thing that you write on it. 4) Implementing queue using stack library in C ? 5) A question on BFS. 6) A puzzle - A mobile phone company is launching a new product (mobile phone) which they say is unbreakable if its thrown from a certain height (a threshold). You are given 2 phones. Find the threshold height of the product if you can throw it from any floor of a 100 story building ?
Find the first two largest numbers in an array of integers.
Write a function to check if a given tree is a valid binary search tree or not.
What is the difference between a HashTable and HashMap in Java?
Method to find all duplicates of letters in a string. A few simple data structure runtime questions. Questions on OO design.
Tell me about a time you had to deal with a difficult team member
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
Viewing 391 - 400 interview questions