Reading as a god

Chapter 218 Growing Together+

Chapter 218 Growing Together+
"Shanshan, do you have European blood~"

Zhang Shan:? ? ?
Why did you say that suddenly?Brother is a pure-blooded Chinese, okay?

Immediately Zhang Shan understood what Gu Youyou meant!
Tsk tsk tsk, so obscene, bah, so cryptic~
Zhang Shan has often heard Luo Changhui and Wu Miao brag about similar things, but their statements are more straightforward!
It was the first time I heard such a subtle statement, and I almost didn't react!

After reacting, Zhang Shan was even more tamped down~
I have to say compared with Wu Miao and Luo Changhui before~
Gu Youyou has a completely different taste.

Soon scored twice.

Although according to Zhang Shan's physical strength, there is no problem at all in a few more rounds~
But after all, a slap can't make a sound~
Without a comparable opponent, no matter how strong a person is, it is useless.

Nevertheless~
It was night, both Gu Youyou and Zhang Shan had grown up a lot.

~~~~
The time comes to the morning of October 10~
For the first time, Gu Youyou, who has always had a regular schedule, went to bed early and woke up early, didn't get up until ten o'clock in the morning!

After getting up, I saw Zhang Shan got up without knowing when.

It seems to be tinkering with the computer~
After approaching, Gu Youyou saw what Zhang Shan was doing?
"Okay, you didn't stay with me for a while all morning, so you were madly making up your homework!"

"What make-up homework~ Didn't I give it to you yesterday?"

"What? Yesterday you patronized and did bad things, how can you make friends..."

It wasn't until here that Gu Youyou knew what Zhang Shan meant by handing in homework~
At this time, she couldn't help but blushed again.

~
Zhang Shan is also very helpless, he has not attended class for two weeks, but the lessons he owes are easy to say~
If you are in a hurry, just use the item card to swipe the class.

But in reality, Zhang Shan can only do the homework slowly!
The first thing to get done is the homework left over from the computer class on the basics of programming...

Zhang Shan remembered that the teacher of this class was a woman in her early 30s—Ning Ning.

Although the teacher's name is cold, but the person is quite humane, although the homework has been submitted before, but after Zhang Shan explained the situation of the past two weeks to the teacher, Teacher Leng specially left Zhang Shan to submit the homework permission.

The teacher assigns online homework, which naturally has to be submitted online.

The homework this time is similar to the last one, and it still requires (using C language) programming.

There are two homework assignments in total, the first assignment is fifty C language programming questions.

Looking at each topic:

"There are five students, and each student has grades of 3 courses. Input the above data (including student number, name, and grades of three courses) from the keyboard, and calculate the average grade. The original data and the calculated average grade Stored in the disk file "stud"."

"There are n integers, so that the previous numbers are moved backward by m positions in order, and the last m numbers become the first m numbers."

"Enter a string from the keyboard, convert all lowercase letters to uppercase letters, and then output to a disk file "test" to save. The input string ends with !."

"Counts the number of occurrences of a substring in a string."

Perhaps in front of the former Zhang Shan, these questions are still a bit difficult~
But now for Zhang Shan, it’s completely pediatrics~
~
Originally, Gu Youyou was still a little worried about gains and losses~
After all, she thinks that the most important thing has been given to Zhang Shan.

Sitting next to Zhang Shan, Gu Youyou's heart calmed down.

At least, the two of them still have a lot of common interests~
For a moment, Gu Youyou remembered that Zhang Shan was seriously explaining the convolution algorithm to her in the Shuimu playground~
So, everything is just a new beginning~
Looking at Zhang Shan in front of me again, he seems to be more handsome than usual!
~
Gu Youyou sat around Zhang Shan, originally planning to give advice to Zhang Shan!
The result is completely useless!
These procedures are really not difficult!
But as the saying goes, it is easy to solve problems that are not difficult.

It's not that simple either~
But Zhang Shan seems to be able to do a job with ease!
It's still an ordinary C language, it couldn't be simpler~
Many people who are not even computer majors will have more or less mastery of this knowledge.

However, under Zhang Shan's percussion, the plain sentences seemed to be one note after another.

Gu Youyou felt that the written code was as beautiful as poetry.

shouldn't~
The grammar is still the same grammar, Zhang Shan didn't create anything original!

Gu Youyou suddenly had a flash of inspiration, and soon discovered the blind spot.

It's an algorithm!
Gu Youyou noticed that Zhang Shan used very ingenious algorithms when dealing with these problems.

The cleverness of the algorithm shows that the structure of the program is much simpler~
Gu Youyou feels that the code written by Zhang Shan, which can also achieve the requirements of the topic, must be much more efficient to execute!

Although the execution time of this simple program is almost negligible.

But if it is true, there is still a difference~
After all, there are data structures and things like traversal involved.

The so-called traversal refers to visiting each node in the tree (or graph) along a certain search route.

The operation done by accessing the node depends on the specific application problem, and the specific access operation may be to check the value of the node, update the value of the node, and so on.

Different traversal methods have different order of visiting nodes.Traversal is one of the most important operations on the binary tree, and it is the basis for other operations on the binary tree.Of course, the concept of traversal is also suitable for multi-element collections, such as arrays.

Tree traversal is an important operation of trees.

The so-called traversal refers to the access to the information of all nodes in the tree, that is, each node in the tree is visited once and only once in turn.

Unlike linear data structures (linked lists, one-dimensional arrays) that basically have standard traversal methods (usually in linear order), tree structures have many different traversal methods.Starting from the root node of the binary tree, the traversal of nodes is divided into three main steps: operating on the current node (called "visiting" nodes), traversing the left child nodes, and traversing the right child nodes.The sequence of these three steps is also the fundamental difference between different traversal methods.

……

Gu Youyou looked at Zhang Shan, and almost every program only took about 30 seconds.

Zhang Shan compiled and ran these programs in less than half an hour.

Looking at a large 0error, 0warning
Gu Youyou was actually a little envious, although she could eventually achieve the same level as Zhang Shan.

But it is still a little difficult to go through each program~
What's even worse is that some errors are not reported.

very angry~
Speaking of it, Zhang Shan is really careful. Gu Youyou originally thought that Zhang Shan would be negligent in a certain comparison operator~
As a result, Zhang Shan was extraordinarily careful!
(End of this chapter)

Tap the screen to use advanced tools Tip: You can use left and right keyboard keys to browse between chapters.

You'll Also Like