[ybt efficient advanced 4-5-5] [luogu P2680] transportation plan
transport plan
Title Link: ybt high efficiency advanced 4-5-5 / luogu P2680
General idea of the topic
There is a tree with weights on its edges. Then there are some paths, and then you can choose an edge and make its weight become 0. If you want to make the modified longest given path the shortest, output this value.
thinking
First, when y ...
Added by Iconoclast on Tue, 08 Mar 2022 13:33:19 +0200
In 2021, specially inserted candidates carefully sorted out the notes of computer foundation and data structure
Must do problem sorting
At 21:40 on April 11, 2021, I was very skeptical about life after the exam. I originally wanted to rely on professional courses to score points. I also expected that there would be a large number of applicants for specialized courses this year. In addition, the reform of professional courses should be simpler, but I did ...
Added by KingIsulgard on Tue, 08 Mar 2022 13:26:58 +0200
Handwritten Promise reading one is enough
Turn:
Handwritten Promise reading one is enough
catalogue
outline
Blog ideas
API features and handwritten source code
Constructor
then
catch
Promise.resolved
Promise.rejected
Promise.all
Promise.race
outline
This article mainly introduces the fea ...
Added by qumar on Tue, 08 Mar 2022 13:20:57 +0200
Summary of the second week
1, Array;
Copy: system arraycopy(a,1,b,0,4); int[ ] b = Arrays.copyOf(a,6);Sorting: arrays sort(arr); // Ascending order (from small to large)
2, Method:
Encapsulate a specific business logic functionBe as independent as possible and do only one thing in one wayMethod can be called repeatedlyReducing code duplication is condu ...
Added by amandas on Tue, 08 Mar 2022 13:17:38 +0200
Linux kernel source code - CFS scheduling (4.20.17)
cfs_rq
Each cpu has a corresponding running queue rq, in which the scheduling queues with different scheduling strategies are maintained.
struct rq {
...
struct cfs_rq cfs;
struct rt_rq rt;
struct dl_rq dl;
...
};
The scheduling queue of cfs is maintained through the red black tree_ In the ...
Added by vestax1984 on Tue, 08 Mar 2022 13:12:12 +0200
obtainFreshBeanFactory of Spring startup process source code
Invokebeanfactoryprocessors is a very important method in Spring startup. We need to understand several concepts before parsing the source code of this method.
1, BeanDefinition
1.1. Instantiation of common objects
We know that ordinary java files will be compiled into java files when Java runs When we instantiate an object into memory, we u ...
Added by sara_kovai on Tue, 08 Mar 2022 13:06:07 +0200
chat. System time and file path of netcore mining pit
chat. System time and file path of netcore mining pit
Hi, dear friends, I've been busy recently. I haven't shared anything with you for a long time. I've worked two extra days this weekend. The company's new projects are all based on netcore to develop, in the development process, we also stepped into some pits. Here we summarize two pits, whi ...
Added by neylitalo on Tue, 08 Mar 2022 13:03:39 +0200
TypeScript learning notes - type advanced
1, Type inference
In the previous learning process, we need to write type annotations when defining basic types of variables. Although this can clearly indicate the data type of variables, it is really troublesome to write. TS also helps us take this problem into consideration. In most cases, TS will automatically deduce the type of variable a ...
Added by amycrystal123 on Tue, 08 Mar 2022 13:03:40 +0200
Golang quick start
Golang basic learning notes, quickly understand the basic grammar of golang.
Learning materials
Super complete golang interview questions collection + golang Learning Guide + golang knowledge map + entry growth route ; One covers the core knowledge that most golang programmers need to masterHan Shunping's golang video tutorial , the video is ...
Added by laknal on Tue, 08 Mar 2022 12:56:01 +0200
Graphic big data | practical operation case Hive construction and application case
Author: Han Xinzi@ShowMeAITutorial address: http://www.showmeai.tech/tutorials/84Article address: http://www.showmeai.tech/article-detail/1711.Hive construction and configurationHive is one of the most important tool platforms in the big data ecosystem. It is a key component of offline computing. It is often used for data warehouse construction ...
Added by b0ksah on Tue, 08 Mar 2022 12:55:25 +0200