Chapter 16: Temptation of New Technology
Chapter 16: Temptation of New Technology
Yang Chen opened the link with interest.
A registration verification appeared.
Yang Chen entered his phone number and logged in through his WeChat account.
After he entered the first challenge level, an algorithmic problem.
As soon as he read the question, Yang Chen could not help but be interested.
The question asked for the length of the longest non-doubling substrings in a string. It was a question about algorithms for big data.
It was a little difficult, but it was not too difficult for Yang Chen.
There were two ways to solve this problem. The simplest was to crack it forcefully. The other was to use the pointer to solve it cleverly.
The forceful solution was simple and crude, but it was too inefficient. With this method, all the possible results would be listed exhaustively, and then, according to additional conditions, further screened for solutions that met the requirements.
Yang Chen did not intend to do this. Instead, he wanted to solve it with the pointer method. It was more efficient, but it required a deeper understanding of the pointer.
Using three plastic surgery maxLength, stat, and end to store maximum string length, string starting position, string ending,
Yang Chen called up the programming tool and typed in the code.
Soon, Yang Chen pasted the answer at the bottom of the level and clicked send.
It didn't take long for the checkpoint to verify the answer and pass him.
The question for the second checkpoint popped up: Given a binary tree, seek the sum of paths
This chapter upload first at NovelUsb.Com
After looking at the question, Yang Chen frowned. This was an algorithmic question from the client end. After some thought, he still had an idea to solve this question.
Then, he answered the third question, fourth question and so on, passing all the questions.
At the tenth level, Yang Chen was stumped by the questions and could not think of a solution.
Yang Chen was required to provide the sum of all integers in a large list, implement a multi-nucleus solution, and calculate an accurate result.
This kind of algorithm was not in Yang Chen's grasp. Yang Chen's only idea was to use multiple threads, or tasks, and to divide the List. Each small piece of List used a thread to calculate its sum.
Then he would have to wait for all the threads to be completed before he could get the correct results. However, how could he ensure that he could obtain the results of the output after all the threads were completed at the same time?
Yang Chen frowned and could not think of a way to solve this question.
However, Yang Chen saw a strategy guide at the bottom of the checkpoint. He clicked on the link to obtain a strategy to clear this checkpoint.
Unable to find the answer for a long time, Yang Chen had no choice but to admit defeat to this system and click on the link to search for the strategy to clear the level.
The link opened and jumped straight to a page showing a theory page for a multi-calculus algorithm.
Yang Chen was stunned for a moment. He read the demonstration of this multi-calculus algorithm seriously. Soon, his mind was engrossed, and a new algorithm logic kept appearing in his mind.
Yang Chen quickly found the correct way to clear the level based on the dissolution of the questions.
Yang Chen was inexplicably excited. He quickly followed the logic of the multi-calculus method and wrote the standard answer to the challenge question.
After that, he clicked send.
The answer was correct. He cleared the tenth level and continued to the next level.
The content of the eleventh question appeared.
Yang Chen read the questions seriously. A moment later, his expression suddenly turned ugly and he fell into self-doubt.
This was a question that Yang Chen could not solve. It seemed that he had to apply a new algorithm similar to the multi-calculus algorithm.
Yang Chen hurriedly clicked on the bottom right corner to obtain hints for clearing the level.
However, this time, a prompt dialog box popped up in the challenge system.
He did not have enough points to clear the level and could not obtain any hints.
Yang Chen looked at the rules. He had to clear ten rounds in a row to obtain the strategy guide's hints.
In addition, the clearing system also provided two ways to obtain hints. One, to assist in writing the programming tasks. Two, to assist in the approval process.
Yang Chen was extremely curious and quickly clicked to help write the programming tasks.
The next moment, the contents of more than a dozen function tasks were displayed.
3D proofreading simulation display, virtual point judgment, implementation of parabolic marking lines There were more than a dozen similar difficulties and specific programming tasks for the functions presented in front of Yang Chen.
Yang Chen frowned and casually opened the 3D proofreading simulation display and checked on the tasks.
Soon, a strange feeling appeared in Yang Chen's heart. This request was very specific and accurate.
It was so accurate that Yang Chen could probably write it all after only taking a glance. However, it would take a while to write this program. Yang Chen estimated that with his work efficiency, it would probably take him three to four days.
Damn! Wasn't the other party taking advantage of his free labor?
He could not fall for this evil trick.
Yang Chen immediately realized the real purpose of this challenge system.
Yang Chen was working in an IT company. As the main manager, he was at the prime age of 30 years old and had a base salary of 50,000 yuan. Coupled with the project bonus, his monthly salary was 100,000 yuan. Three to four days of work was worth about 10,000 yuan.
Moreover, the developer of this challenge system had them sign a waiver in advance when they registered.
In other words, if he helped write the code for these functional tasks for free, the system designer would be able to use the code he had created for free.
Damn! The other party wanted the fruits of his labor for nothing.
Who had developed this challenge system? It was too shrewd.
He didn't want to play anymore!
After figuring this out, Yang Chen threw the mouse out angrily.
However, not long after he threw away the mouse, Yang Chen stared at the eleventh question, his heart itching.
He was very curious about the hint that could help him solve this algorithm question.
The multi-calculus method he had learned previously had helped him a lot. It could be used for many programs in the future.
If it was another new algorithm, wouldn't it be a shame to miss it?
Was there any other way to obtain the hints of the strategy guide?
Yang Chen thought for a moment and opened another function that could allow him to obtain a hint: assisting the approval process.
When he opened the approval program, he was surprised to see that the requirement was not to help write the programming tasks. Instead, it was to help approve the content of those function writers.
Currently, the content was empty, but there was an approval ranking.
Yang Chen thought for a moment and understood the purpose of this function. It was trying to get the challengers to work for free.
The designer of this system was extremely cunning. He would not fall for this trap.
Yang Chen turned off the computer in exasperation.
However, not long after, Yang Chen threw away his phone and sat in front of the computer table with a helpless expression.
He simply felt too uncomfortable. That algorithm question kept circling in Yang Chen's mind.
Feeling the beauty of the multi-calculus algorithm and facing the attraction of the new algorithm's logic, no one who studied the new technology attentively could withstand this temptation.
Yang Chen, who was eager to learn a new algorithm, impatiently opened the level challenge system.