2022 TZC training team provincial competition trial 1 problem solution
A(*) enumeration
The title means to find
The logarithm of the largest adjacent difference
If the difference is the same, select the one with the highest height
If the height is the same, select the number with the largest number
#include<iostream>
#include<cstring>
#include<algorithm>
using namespace std;
const int N = ...
Posted by lemist on Sun, 06 Mar 2022 13:03:29 +0100
Bubble algorithm of C language, sorting data and library function, use and Simulation of qsort function
Bubble algorithm of C language, sorting data and library function, use and Simulation of qsort function Bubble algorithm for data sorting
Article catalogue
Bubble algorithm sorting integer arrayThe use of c language library function qsortAnalog implementation of qsort function
1, Bubble algorithm sorting integer data
1. ...
Posted by joe_C_nice on Sun, 06 Mar 2022 12:56:28 +0100
Summary of order timeout implementation scheme
Summary of order timeout implementation scheme
Order timeout is a classic business scenario, which is very common in the mall system.
Common implementation schemes are as follows
Timed pollingPassive cancellationredis expiration callbackDelay message
1, Timed polling
Implementation method: start a scheduled task, poll the database after a ...
Posted by please_explain on Sun, 06 Mar 2022 12:56:22 +0100
Principle and configuration of Ansible
For image download, domain name resolution and time synchronization, please click Alibaba cloud open source mirror station
Ansible principle
Ansible is an open source automation platform. It is a simple automation language that can perfectly describe the IT application infrastructure in * * Ansible Playbook * *. It is also an automation engin ...
Posted by ethridgt on Sun, 06 Mar 2022 12:37:39 +0100
What are the data types? How to judge? How to convert?
data type
It is divided into simple type (basic type) and complex type (reference data type)
Basic types: String, number, Boolean, Null, Undefined, Symbol(ES6 added).
Complex types: object, array, function.
Note: both Array and Function are subclasses of object, so there is only one kind of object in the strict sense of complex type, which ca ...
Posted by dicefile on Sun, 06 Mar 2022 12:31:11 +0100
Python crawler notes
As a self-study note, this article is for reference only Learning course: IT of Feixue City, station B
Reptiles: Use the program to obtain resources on the Internet.
robots.txt protocol: specifies which data in the website cannot be crawled. It is only a protocol, but it does not prevent malicious crawling
General steps of crawler:
Ge ...
Posted by Mig on Sun, 06 Mar 2022 12:31:28 +0100
@Controller and @ RequestMapping annotations
Spring 2.5 adds the Spring MVC annotation function to replace the traditional XML based Spring MVC configuration.The traditional style controller not only needs to deploy the mapping in the configuration file, but also can only write one processing method, which is not flexible enough.Using annotation based controllers has two advantages:
In t ...
Posted by coldfiretech on Sun, 06 Mar 2022 12:23:30 +0100
Copy of kafka and the relationship between partition and copy
Role of a copy
1.Kafka replica function: improve data reliability.
2. The copy in Kafka is divided into Leader and Follower. Kafka producers will only send data to leaders, and then Follower will find leaders to synchronize data.
The reading and writing is completed by the leader. The follower only backs up and synchronizes data with th ...
Posted by chocopi on Sun, 06 Mar 2022 12:13:01 +0100
[redis series] redis learning 7. Details of redis configuration files you don't know
Detailed explanation of Redis configuration file
Company
When redis is started, it will read the configuration file redis conf
1k => 1000 bytes
1kb => 1024 bytes
1m => 1000000 bytes
1mb => 1024*1024 bytes
1g => 1000000000 bytes
1gb => 1024*1024*1024 bytes
Units in redis are not case sensitive. For example, 1GB, 1GB and ...
Posted by marting on Sun, 06 Mar 2022 12:11:18 +0100
Mysql learning notes
first day
1. What is a database? What is a database management system? What is sql? What is the relationship between them?
Database:
The English word DataBase is called DB for short. A combination of files that store data in a format.
As the name suggests: a warehouse for storing data is actually a pile of files. These files store data in a spe ...
Posted by andrewmay67 on Sun, 06 Mar 2022 12:07:50 +0100