Please write code to compute x^x without using multiple
Intern Interview Questions
248,749 intern interview questions shared by candidates
Give me 5 different ways of finding the median (middle element) of a linked list. For the sake of simplicity, assume the list has odd number of ints. Also mention the runtime for each. Follow up: What's the fastest way you could find the median? What is the runtime? Oh.. and yes, code your answer(s) in any language of your preference.
How would you store and search 1 million names?
Can you tell me about yourself?
During the last stage of the interview, the department head was asking various questions relevant to the position. However, one of the last question was a bit strange to say the least that left me confused and curious whether I would be willing to work for a person that assigns tasks or provide feedback using random allegories: "A woman came to the market to sell eggs. The first customer bought half of her eggs and a half of an egg. The second customer bought half of the remaining eggs and a half of an egg. The third customer only bought one egg. After that, the woman had no eggs in stock. How many eggs did she bring with her to the market?"
1. You have 3 black and 2 red balls. What is the probability that you can arrange them such that no black balls are placed consequently. 2. What is the least multiple of 15 whose digits consist only of 1's and 0's?
Are you capable and willing to move to Switzerland
Why are you interested to work in our company?
Given a bag of nuts and a bag of bolts, each having a different size within a bag but exactly one match in the other bag, give a fast algorithm to find all matches.
“Imagine that you have three boxes, one containing two black marbles, one containing two white marbles, and the third, one black marble and one white marble. The boxes were labeled for their contents - BB, WW, BW - but someone has switched the labels so that every box is now incorrectly labeled. You are allowed to take one marble at a time out of any box, without looking inside, and by this process of sampling you are to determine the contents of all three boxes. What is the smallest number of drawings needed to do this?”
Viewing 221 - 230 interview questions