1. Direct insertion sort
Green is the insertion element, red is the insertion element.
For each number inserted, the element to be inserted is compared in turn with the element previously inserted. If it is larger than it, it covers the position o ...
Posted on Wed, 14 Aug 2019 06:40:20 -0700 by ozace
1. vmstat command Virtual Meomory Statistics
2. dmesg command
III. free Order
IV. Viewing CPU Information
6. Viewing System and Kernel Related Information
List file information that process calls or opens
1. vmstat comm ...
Posted on Wed, 14 Aug 2019 03:01:36 -0700 by pixelsoul
SnowFlake is an algorithm designed by Twitter to generate unique IDs in distributed systems. It can satisfy tens of thousands of requests for message ID allocation per second by Twitter. These message IDs are unique and have approximatel ...
Posted on Wed, 14 Aug 2019 00:01:07 -0700 by Joshua4550
1. Text Flow and Data Flow
The file types mentioned in A.Qt are divided into two main categories1. Text File - The contents of the file are readable text characters2. Data Files - File contents are direct binary dataQFile directly supports reading and writing text files and data filesB.Qt provides auxiliary classes to simplify reading and writ ...
Posted on Tue, 13 Aug 2019 19:20:45 -0700 by illushinz
Classes of TS
Posted on Tue, 13 Aug 2019 06:41:27 -0700 by overlordofevil
Topic link: http://acm.hdu.edu.cn/showproblem.php?pid=5575
Now there is a huge reservoir (which can be regarded as two-dimensional), and the middle of the reservoir is divided into n n n parts by n_1n-1n_1 baffles. You know the height of these baffles. Now you know the results of mmm detection. E ...
Posted on Tue, 13 Aug 2019 00:00:17 -0700 by jaapoost
Adaptive Threshold Selection Algorithms for Simulating PWM Waves
In the development of MCU, the waveform we often come into contact with is PWM wave, which is usually 0-3.3V digital PWM wave, rarely involving analog PWM wave. What's the difference between the two? Simulated PWM wave is not o ...
Posted on Mon, 12 Aug 2019 03:54:51 -0700 by nonexistentera
Over 20 Years Batch Algorithm Written Test Question 3
There are N tasks executed, each taking Pi's time to complete.At the same time, there may be some dependencies between tasks.For example, Task 1 may depend on Task 2 and Task 3. Task 1 must execute both Task 2 and Task 3 before it can execute.
Posted on Sun, 11 Aug 2019 20:05:25 -0700 by Deemo
HashMap uses a key/value storage structure, where each key corresponds to a unique value, and queries and modifications are fast enough to achieve the average time complexity of O(1).It is non-thread safe and does not guarantee the order in which elements are stored;
HashMap implements Cloneable and can be ...
Posted on Sun, 11 Aug 2019 11:06:04 -0700 by ricta
Table smth has 10,000 rows of data with two fields of 3,000 length.
select id from smth order by id; very slow
select id from smth order by id,ver; faster
create table smth(
id int(11) not null default 0,
ver int(11) default null,
content varchar(3000) default null, ...
Posted on Sat, 10 Aug 2019 04:15:37 -0700 by .Stealth