Chapter Ninety-Two: Dormitories and Codes

Jiang Danfeng drove into the campus from the main entrance of Sanjiang University with Cai Xinghuo in a brand-new Accord, and asked, "Teacher Cai, where is the dormitory building for computer science?"

"Drive along the main road and turn left when you reach the Science and Education Building. Pen | fun | pavilion www. biquge。 info" Cai Xinghuo pointed to the road, and then asked with some trepidation: "Miss Jiang, does Du always have any opinions about me or our school?"

"Mr. Cai misunderstood, our Mr. Du is very particular about the distinction between public and private, and it has always been like this when we were in the office. Jiang Danfeng said lightly with the attitude of a person who came over: "The thinking of a genius is different from that of ordinary people, he has his ideas, we just do it." ”

"The iView developed by Mr. Du is now very popular in the United States?"

"Yes, there are already more than 500,000 users using it, and many professional media in the United States have reported on it, such as "Computer World", "Red Herring", etc., which cannot be faked. ”

"I'm not suspicious of Mr. Du, I'm in disbelief. Cai Xinghuo felt that he was misunderstood by the beauties, and he was very frightened, so he said in very exaggerated words: "After getting Mr. Du's information from President Chen yesterday, I thought I was looking at the resume of a Nobel Prize winner, and I admired it very much, so I wanted to know more details." ”

Jiang Danfeng smiled, stopped talking, drove with peace of mind, and soon arrived at the dormitory building where the 95th class of computer science and applied technology was located.

"Of course you can, but it's a mess inside, I'll go up and tell the animals to clean up. Cai Xinghuo held a thick stack of propaganda posters, pushed the car door and turned his head and said, "I'll come down to pick up Miss Jiang when I'm done." ”

"That's troublesome Mr. Cai. Jiang Danfeng saw that the stack of posters was very thick, so he said: "Mr. Cai, you can just take a few of them, and put the others in the car first, and then paste them directly." ”

"Okay, okay. ”

Cai Xinghuo took a few posters the size of A3 paper, strode up the dirty stairs to the 4th floor, and walked into a dormitory with an open door, where four students were sitting at their desks playing poker, and there were a few people watching next to them, shouting and shouting, which was very lively.

"Xiao Jialin, Zhang Dongliang, stop playing cards, fold the quilt, sweep the ground, clean up the things, throw away the garbage or something, and there will be a big beauty coming up." ”

Cai Xinghuo studied very unpopular history in graduate school, and couldn't find a good job after graduation, so he stayed in school as a counselor, he knew that with the development of science and technology, computer science will become more and more popular, and there are more and more opportunities.

Because of this, he is very popular among the students, and he is also quite prestigious, several students are very obedient, throw away the playing cards, fold the quilt, sweep the floor, and ask while busy: "Teacher Cai, what beauty?

"Teacher Cai, is your friend coming to comfort us poor students?"

"I think Mr. Cai is kind, and he plans to help us introduce our girlfriends, hahaha......"

"Don't mess around, be serious!" Cai Xinghuo knocked on the door with a fist, making a knocking sound, and reminded Zhengse: "It's the beauty of Snapdragon Software Company, their boss is going to come to our school to give a speech, and by the way, recruit employees, now send a secretary to come over to take a look, you quickly change into clean clothes, comb your hair, and leave a good impression." ”

"What is Snapdragon Software?"

"Is it the awesome company in Beijing with a monthly salary of more than 10,000 yuan?"

"That's right, that's the company. Cai Xinghuo put the poster on a bed that had just folded the quilt, and then helped clean up the garbage with his own hands, and at the same time introduced: "They Mr. Du moved the company to Yuncheng, and is recruiting on a large scale, with a monthly salary of 2000, even if the work contract has been signed, it doesn't matter, their company helps to pay liquidated damages." ”

"Didn't you say that the monthly salary is over 10,000, why is it only 2000?"

"The monthly salary of more than 10,000 yuan is for senior programmers, how can fresh graduates give so much. ”

"Damn, look down on our fresh graduates?"

"2000 is already a lot, and the highest salary among our graduates who signed a contract this year is just over 1000 yuan. Cai Xinghuo took out a pair of stinky sneakers from under the bed, threw them into the dormitory next door, and then walked back and said: "Don't be too ambitious, the boss of Snapdragon Software is very powerful, and the recruitment standard is very high, so it's not so easy to get in." ”

"What's a great way?"

Cai Xinghuo opened his mouth, planning to report Du Qiu's resume like the name of the dish, but when the words came to his mouth, he felt that it was too unbelievable, and these students would definitely not believe it, so he picked up the poster that was resting on the bed just now and said: "This is a recruitment poster made by their boss himself, what does it mean?"

One of the students wearing the uniform of the Inter Milan football team took one first, and saw that the poster was very simple, exactly the same as the notepad posters posted on the wall in the dormitory, with a few short lines of C language code printed in the middle, and a line of prompt text below: If you understand this code, please go to the first floor of the multi-functional lecture hall of Sanjiang University from April 30 to May 2 to receive a beautiful gift.

"What do these lines of code mean?"

"This is very simple, it is the nth number of the Fibonacci sequence. The student returned the poster to Cai Xinghuo with some disdain, and asked with a smile, "Teacher Cai, what is the exquisite gift?"

"Snapdragon Software's specially customized thinker'notebook notepad is very beautiful, and it will cost a lot of money to buy it. ”

"Yo, that's good, when can I get it?"

"Isn't it written on it, tomorrow will be fine. Cai Xinghuo saw that the dormitory environment was barely visible, so he put a few posters on the desk and said, "I'll go downstairs now and invite the beautiful woman to come up and talk to you." ”

"Go and go, we've never had a beautiful woman in our dormitory, and it's finally going to open today. ”

"That's right, there are only 5 girls in the class, none of them are beauties, and we dozens of strong men have been hungry for four years. ”

"You guys are serious, don't talk nonsense, people are here to do business, and the origin is not small. Cai Xinghuo walked to the window, pointed to the car downstairs, and said, "Na, people are driving high-end imported cars, don't know what to do, be respectful." ”

"Teacher Cai, rest assured, we promise to sit still and ...... in a mess"

"We must have both wealth and sex, people and vehicles!"

Jiang Danfeng is a girl with a strong desire to consume, when she was in the United States before, she earned a total of about 6,000 US dollars in salary plus commission, in addition to the money left to her parents, the rest were used to buy a bunch of clothes, shoes and bags and cosmetics to return to China, so she dressed up very fashionably, wearing a red windbreaker, when she walked into the gray boys' dormitory, it was like a rose suddenly blooming in the vast desert, eye-catching and gorgeous, so that everyone's eyes were bright and breathing was stagnant.

The dormitory layout of Sanjiang University is similar to that of Beijing Business School, both of which are standard six-person rooms, but there are eight beds, and the two lower bunks near the door are used as utility rooms, piled up with all kinds of items, although they have just been cleaned up, they still look messy, and there is a wide and long desk in the middle of the room, which makes the already narrow dormitory more and more crowded.

"Miss Jiang, please be seated. ”

"Thank you. Jiang Danfeng himself is a student who has not yet graduated, and he is very kind to the furnishings in the room, so he sat down on the stool generously, and then went straight to the topic, pointed to the poster on the table, and asked, "Have you all read this code?"

There were seven or eight students crowded in the dormitory, but they were shocked by her beauty, no one talked nonsense, and no one answered, they seemed to be worried that they would lose their impression by saying the wrong thing, and there was a moment of tranquility, Cai Xinghuo saw that he was cold, so he gently kicked the student wearing the Inter Milan uniform, and said: "Xiao Jialin, don't you know?"

This is the code that generates the nth number of the Fibonacci sequence. ”

"Do you think there's anything wrong with this code?"

Xiao Jialin paused for a moment, lowered his head and read the code again, and then said with some hesitation: "With the increase of n, the amount of computation will increase exponentially, and the execution time will become longer and longer. ”

Jiang Danfeng was noncommittal, and asked the other students one by one, and saw that everyone agreed with Xiao Jialin's point of view, so he asked again: "If you want to improve, how should you change it?"

The Fibonacci sequence is a wonderful sequence of numbers that starts with 0 and 1, and then each number is made up of the addition of the first two numbers, such as 0, 1, 1, 2, 3, 5, 8, 13...... This is a very typical recursive relationship, so many computer programming textbooks will use it as an example when explaining recursive functions, so Xiao Jialin can see at a glance what the code on the poster means.

But it is a bit difficult to improve this code, Xiao Jialin and a few classmates whispered for a while, found a pen, added a few lines of code to the poster, and then explained: "Save the intermediate number that has been calculated, if the next calculation needs to look it up first, so as to avoid double calculation, the time complexity will be greatly reduced to o(n)......"

Jiang Danfeng took out her notepad, listened and compared it with the standard answers provided by Du Qiu, and after explaining, she closed the notepad, stood up, nodded at Xiao Jialin and a few students who were active just now, and said with a smile: "You are all very good, our company is conducting recruitment activities in major schools, and there is a shortage of manpower, I don't know if a few of you are willing to help? If you are willing, give a subsidy of 100 yuan a day." ”

The senior students have a leisurely life, they don't have anything to do, they have money to get, and they have beautiful women to invite, so naturally there is no unwillingness, Jiang Danfeng registered their names one by one, and then left with them.

As soon as she left, the remaining students who were not selected were talking about it as if they had blown up the pot.

"What the hell does this beauty mean?"

"Xiao Jialin really took a luck, wrote a few lines of code casually, and was added by the blue eyes of beautiful women, and entered a large company with a monthly salary of more than 10,000 yuan. ”

"Shit! They just let them work temporarily, and they didn't say that they were going to be recruited to work in the company. ”

"Teacher Cai said that their boss was going to come to our school to give a speech, and the beautiful woman just now said that their company was engaged in recruitment, but there was neither speech information nor recruitment information on this poster, so I don't know what the hell is going on. ”