Job Recruitment Website - Recruitment portal - Common interview questions intelligence questions

Common interview questions intelligence questions

Common interview questions (puzzles)

? Some interview puzzles with answers (for reference only).

1. You let the workers work for you for 7 days, and the reward for the workers is a gold bar. The gold bars are divided into seven consecutive sections. You must give them a section of gold bars at the end of each day. If you are only allowed to break the gold bars twice, how can you pay your workers?

2. Please cut a box of cakes into 8 pieces and give them to 8 people, but there must be one piece left in the cake box.

3. Xiaoming's family crossed a bridge, and it was dark when they crossed it, so there must be lights. Now it takes 1 second for Xiaoming to cross the bridge, 3 seconds for Xiaoming's brother, 6 seconds for Xiaoming's father, 8 seconds for Xiaoming's mother and 12 seconds for Xiaoming's grandfather. At most two people can cross this bridge at a time, and the speed of crossing the bridge depends on the slowest one, and

the light will go out 3 seconds after it is lit. Q: How do Xiaoming's family cross the bridge?

4. A group of people have a party, each wearing a hat. There are only two kinds of hats in black and white, and there is at least one black one. Everyone can see the color of other people's hats, but not their own. The host first shows everyone what hats others are wearing, and then turns off the lights. If someone thinks they are wearing a black hat, they will slap themselves in the face. The first time I turned off the lights, there was no sound. So I turned on the light again, and everyone watched it again. When I turned off the light, it was still silent. It was not until the lights were turned off for the third time that there was a slap in the face. How many people are wearing black hats?

5. Please estimate the quality of the cn tower.

6. There is a diamond at the elevator door of each floor from the first floor to the tenth floor, and the diamond has different sizes. When you take the elevator from the first floor to the tenth floor, the elevator doors on each floor will open once, and you can only take diamonds once. How can you get the biggest one?

7. The u2 choir has to get to the concert venue in 17 minutes. On the way, it has to cross a bridge. Four people start from the same end of the bridge. You have to help them reach the other end. It's dark and they only have one flashlight. At most two people can cross the bridge at a time, and they must hold a flashlight when crossing the bridge, so someone has to bring the flashlight and go back and forth to both ends of the bridge. Flashlights can't be delivered by throwing them away. Four people walk at different speeds. If two people walk together, the slower one will prevail. Bono takes 1 minute to cross the bridge, edge takes 2 minutes to cross the bridge, adam takes 5 minutes, and larry takes 1 minutes to cross the bridge. How do they cross the bridge in 17 minutes?

8. It takes an hour to burn an uneven rope. How to judge half an hour with it?

9. Why is the cover of the sewer round?

1. How many gas stations (cars) are there in the United States?

11. There is a 7-gram and 2-gram weight and a balance. How can I divide 14 grams of salt into 5 grams and 9 grams each for three times?

12. A train leaves Los Angeles for new york at a speed of 15 kilometers per hour, and another train leaves new york for Los Angeles at a speed of 2 kilometers per hour. If there is a bird, with a speed of 3 kilometers per hour and two trains currently starting, starting from Los Angeles, touching another train and returning, flying back and forth in turn until two trains meet, how long has the bird flown?

13. You have two jars, 5 red marbles and 5 blue marbles. Choose a jar at random, and put a marbles into the jar at random. How can you give the red marbles the best chance? What is the exact probability of getting the red ball in your plan?

14. Imagine you are in front of a mirror. Excuse me, why can the image in the mirror be upside down, but not upside down?

15. You have a jar of pills for four people, and each pill has a certain weight. The contaminated pill is the uncontaminated weight +1. Only weigh it once, how can you tell which jar is contaminated?

16. If you have infinite water, a 3-quart bucket and a 5-quart bucket, how can you accurately weigh 4 quarts of water?

17. You have a bucket of jelly, including yellow, green and red. Close your eyes, choose two of the same color and grab two of the same color. How many can you grab to be sure that you must have two jellies of the same color?

18. Insert the car key into the door, and which direction can you turn it to unlock the car?

19. If you could remove any of the 5 states, which one would you remove and why?

2. Do the following for a batch of lights numbered 1-1, where all switches are turned on. Usually, dial the multiple of 1 in the reverse direction, the multiple of 2 in the reverse direction, and the multiple of 3 in the reverse direction. Ask the number of the light that was last turned off.

21. Suppose a disc rotates like a turntable on a record player. This disk is half black and half white. Suppose you have an unlimited number of color sensors. How many color sensors do you need to put around the disk to determine the direction of rotation? Where should they be placed?

22. suppose the clock reaches 12 o'clock. Note that the hour hand and minute hand overlap. How many times do the hour hand and the minute hand overlap in a day? Do you know the exact time when they overlap?

23. Two odd numbers separated by a number are called odd pairs, such as 17 and 19. It is proved that the number between odd pairs can always be divisible by 6 (assuming that both odd numbers are greater than 6). Now it is proved that there is no `odd pair' composed of three odd numbers.

24. A room has a door (the door is closed) and three electric lights. There are three switches outside the house, which are connected with these three lights respectively. You can manipulate these switches at will, but once you open the door, you can't change the switches. Determine which lamp each switch controls.

25. Suppose you have 8 balls, one of which is slightly heavier, but the only way to find this ball is to compare the two balls on the balance. How many times do I have to weigh it to find this heavier ball?

26. Let's play a spelling game, and the order of all the letters will be disrupted. You have to judge what this word is. Suppose this disassembled word consists of five letters: 1.*** How many possible combinations are there? 2. What if we knew which five letters it was? 3. Find a way to solve this problem.

27. Four women want to cross a bridge. They are all standing on one side of the bridge, and they should all cross the bridge in 17 minutes. It's night. They only have one flashlight. At most, two people can cross the bridge at the same time. Whoever crosses the bridge, whether one or two people, must take a flashlight. Flashlights must be passed around, not thrown over. Every woman crosses the bridge at a different speed. Two people must cross the bridge at the slower speed.

First woman: It takes 1 minute to cross the bridge;

Second woman: It takes 2 minutes to cross the bridge;

Third woman: It takes 5 minutes to cross the bridge;

fourth woman: it takes 1 minutes to cross the bridge.

For example, if the first woman and the fourth woman cross the bridge first, 1 minutes will have passed by the time they cross. If the fourth woman sends the flashlight back, it will take 2 minutes when she reaches the other end of the bridge, and the action will fail. How to get these four women to cross the bridge in 17 minutes? Is there any other way?

28. If you have two buckets, one is filled with red paint and the other is filled with blue paint. You scoop a cup from the blue paint bucket, pour it into the red paint bucket, and then scoop a cup from the red paint bucket and pour it into the blue paint bucket. Which is the higher proportion of red and blue pigments in the two barrels? Prove this by arithmetic. B: crazy calculation

29. Knowing two numbers between 1 and 3, A knows the sum of the two numbers and B knows the product of the two numbers.

A asks B, "Do you know which two numbers are?" B said, "I don't know";

B asks A, "Do you know which two numbers are?" A said, "I don't know";

So, B said, "Then I know";

Then A also said, "Then I know";

what are these two numbers?

3, 4, 4, 1, 1, addition, subtraction, multiplication and division, how to get 24 points?

 31、1! How many are there? Why?

 32、f(n)=1 n> 8 n< 12

 f(n)=2 n< 2

f(n) = 3 n = 6

f (n) = 4 n = other

f (n) function

sign(n) =

sign (n) =

 sign(n)=1 n>

33. Write a program to find the sum of prime numbers, such as f(7)=1+3+5+7+11+13+17=58

34. . .

Please connect all the points in Figure 9 with only one stroke and four straight lines.

35. How many kinds of

36 and 1-1, binary trees are arranged in a certain order? How to correct one number? Write the best method. What about two numbers?

1. day1 gives the first section,

day2 asks the workers to return the first section to the second section,

day3 gives the first section, and

day4 gives the second section to the fourth section.

day5 and so on ...

2. Faced with such a strange question, some candidates can't divide it after racking their brains; However, some applicants feel that this question is actually very simple. Take out 7 pieces of 8 pieces of cake and give them to 7 people, and the remaining 1 piece will be given to the eighth person together with the cake box.

4. If only

one person wears a black hat, he should slap himself when he turns off the light for the first time when he sees everyone wearing a white hat, so more than one person should wear a black hat; If there are two black hats, both of them only see the black hat on each other's head for the first time, and are not sure of their own color, but when the lights are turned off for the second time, these two people should understand that if they wear a white hat, the other party should have slapped them as early as the last time, so they are also wearing black hats, so there will be a slap in the face; But the fact is that it was only the third time that there was a slap in the face, indicating that there were more than two black hats in the audience, and so on, it should be that the lights were turned off several times and there were several black hats.

5. For example, how do you quickly estimate the height of the bracket and column, the radius of the ball, and calculate the volume of each part, etc. The recruiter said: "As far as the problem of cntower is concerned, it is still different from the general riddle or puzzle. We call this kind of question' Fast Estimation', which mainly tests the ability of fast estimation, which is one of the necessary abilities to develop software. Of course, the topic is only a means, not an end. It is necessary to finally get a result, but more importantly, it is an investigation of the process by which candidates get this result. "mr miller illustrated a more reasonable answer for the reporter. He first drew a sketch of cn tower on paper, then quickly estimated the height of the bracket and each column, as well as the radius of the ball, calculated the volume of each part, then calculated it with the density of each part, and finally added it to get a result.

There are actually many such topics, such as: "Estimate the water quality in the Mississippi River. ""If you are the governor of Tennessee, please estimate how long it will take to control the pollution of Cumberland River. "

" Estimate the quality of rain that a person who travels in a light rain gets caught in five minutes. "

mr miller went on to explain:" Questions like this, including some reasoning questions, are all about people's problemsolving (problem solving ability), and it is not enough for you to remember the answer to any question. "

For the purpose of company recruitment, mr miller emphasized four points. These are the staff qualities that creative companies generally pay attention to, and the qualities and abilities that people who want to realize their career dreams in well-known enterprises must have.

requirement 1: rawsmart (pure wisdom), which has nothing to do with knowledge.

requirement 2: long-termpotential ability.

requirement 3: technicskills.

requirement 4: professionalism sm (professional attitude).

6. Her answer is: Choose the first five floors and don't take them. Observe the size of diamonds on each floor and be aware of them. Then choose the last five floors, and choose the diamond whose size is close to the largest diamond that has ever appeared in the first five floors. She still doesn't know the exact answer to this question. "Maybe there is no exact answer, just to test your thinking," she said.

7. Analysis: A Cornell student wrote an article saying that he was confronted with this problem in an interview with Microsoft at that time, and he could only cross the bridge in 19 minutes at the shortest.

8. burn both sides together.

9. One of the answers: The answer I heard from a professor of computer science at MIT is that he has the largest area under the same materials. Second, because if it is square, rectangular or oval, the bored person can pick it up and throw it directly into the underpass! But the round cover can avoid this situation.

1. When this question seems confusing at first glance, you may want to start by asking how many cars there are in this country. The interviewer may tell you this number, but it is also possible to say, "I don't know, you tell me." "So, you say to yourself, the population of the United States is 275 million. You can guess that if the average family size (including singles) is 2.5 people, your computer will tell you that * * * has 11 million families. You recall where you heard that every family has 1.8 cars, so there will be about 198 million cars in the United States. Then, as long as you figure out how many gas stations you need to serve 198 million cars, you can solve the problem. What matters is not the number of gas stations, but the way you get this number.

12. The answer is easy to calculate:

Suppose the distance from Los Angeles to new york is s

Then the distance that the bird flies is (s/(15+2))*3.

13, there is no answer, see if you have the courage to stick to your opinion. <