task 01 array -- datawhale and Tianchi

task 01 array - datawhale and Tianchi Example analysis 1. Sum of two numbers class Solution { public: vector<int> twoSum(vector<int>& nums, int target) { int n = nums.size(); for (int i = 0 ; i < n - 1; ++ i) for (int j = i + 1; j < n ;++ j) { if (nums[i] + nu ...

Posted by FD_F on Tue, 15 Feb 2022 17:29:43 +0100

webpack5 learning and actual combat -- code separation

So far, there is only one bundle of files we have packaged js is such a js file. Then if the project is large, the js will become very large! This causes the first screen to take a very long time to load. Many of these codes do not need to be used immediately, which is a waste of resources. So we can separate the code and introduce it on demand ...

Posted by Deserteye on Tue, 15 Feb 2022 17:21:06 +0100

Postgresql source code (33) Btree index reading - overall process&_ bt_first

function flow ExecScan ExecScanFetch IndexNext[Top level loop function] [1]index_beginscan: (scandesc = index_beginscan generate scandesc (yes) index_beginscan_internal[getr] btbeginscan: initialization IndexScanDesc and BTScanOpaque IndexScanDesc scan = ... BTScanOpaque so = ... ...

Posted by monkeyj on Tue, 15 Feb 2022 16:49:12 +0100

Image size, flipping and affine transformation of opencv learning notes

preface Image size, flipping and affine transformation in opencv 1, Image size transformation Function prototype: void resize(InputArray src, OutputArray dst, Size dsize, double fx=0, double fy=0, int interpolation = INTER_LINEAR) src: input image dst: output image. The data type of image is the same as src dsize: output image s ...

Posted by Lphp on Tue, 15 Feb 2022 16:23:03 +0100

[secretly kill little partner pytorch for 20 days] - [day4] - [example of time series data modeling process]

System tutorial Take pytoch in 20 days Recently and Middle brother,Huige Carry out a small punch in activity, 20 days pytorch, which is the fourth day. Welcome to triple click. The outbreak of the novel coronavirus pneumonia in 2020 has caused many aspects of the lives of people of all countries. Some students are income, some students ...

Posted by Gast on Tue, 15 Feb 2022 15:58:46 +0100

Course design of operating system: add linux driver

Write in front Please read it first https://blog.csdn.net/qq_46640863/article/details/122684580 Compile the linux kernel. 1, Design content and specific requirements New Linux driver Add a driver (using memory to simulate the device) and use module compilation. requirement: (1) New drivers can be loaded and unloaded dynamically. (2) Use t ...

Posted by goaman on Tue, 15 Feb 2022 15:51:38 +0100

Installation, use and optimization of Redis (including python operation zset)

1, Redis installation download Redis 1. Decompress, compile and install # Decompress, compile and install (odc) [mca@clu01 software]$ tar -xvf redis-6.2.6.tar.gz (odc) [mca@clu01 software]$ cd redis-6.2.6/ (odc) [mca@clu01 redis-6.2.6]$ make (odc) [mca@clu01 redis-6.2.6]$ cd src (odc) [mca@clu01 src]$ sudo make install 2. Director ...

Posted by agga.gaag on Tue, 15 Feb 2022 15:42:26 +0100

Linux system programming - interprocess communication (mmap memory mapping)

The previous article introduces the common communication methods between processes: nameless pipeline and named pipeline. This article introduces memory mapping. Memory mapping is very convenient when multiple processes access files to read and write. 1. Introduction to memory mapping mmap function The mmap function can map the files on the d ...

Posted by davejj on Tue, 15 Feb 2022 15:38:04 +0100

vue uses keep alive to cache page optimization projects

concept Keep alive yes Vue When it wraps dynamic components, it caches inactive component instances instead of destroying them. Similar to transition, keep alive is an abstract component: it does not render itself as a DOM element or appear in the parent component chain. effect In the process of component switching, the switched components a ...

Posted by ozzmans on Tue, 15 Feb 2022 15:32:20 +0100

Prefix (2D and)

preface The one-dimensional prefix sum is introduced earlier. The two-dimensional prefix sum is the online upgrade of the one-dimensional prefix sum. The one-dimensional prefix sum is reflected in the array, while the two-bit prefix sum is reflected in the matrix. 1, What are two-dimensional prefixes and? Based on the one-dimensional prefi ...

Posted by dserf on Tue, 15 Feb 2022 15:19:23 +0100