[data structure] (Yan Weimin version) implementation and code of relevant functions of sequence table

#include<iostream> #include<cstdlib> #include<cstdio> #include<algorithm> #include<cstring> #define MAXSIZE 100 #define OK 1 #define ERROR 0 #define OVERFLOW -2 using namespace std; typedef int Status; typedef int ElemType; typedef struct{ ElemType *elem; int length; }SqList; //Linear table initialization Statu ...

Added by parboy on Mon, 14 Feb 2022 13:59:50 +0200

Front end foundation label

1. Special symbols Sharp horn < left horn > right horn Space: &Nbsp: the space occupies the width [font] and has a strong influence &Emsp: the width occupied is exactly one Chinese width, and it is basically not affected by the font Version: & copy Trademark: & Trade & reg 2.div and span labels div: it has no specif ...

Added by obesechicken13 on Mon, 14 Feb 2022 13:44:47 +0200

Selenium has three waiting modes (forced waiting, implicit waiting and display waiting)

1. Forced wait (sleep) from time import sleep sleep(3) # Forced wait for 3 seconds Disadvantages: because the speed of Web loading depends on the hardware, network speed, server response time and other factors. If the waiting time is too long, it is easy to waste time. If the waiting time is too short, it may result in an error when the web ...

Added by r-it on Mon, 14 Feb 2022 13:39:04 +0200

Faker: a wonderful Python tool library

In today's big data era, the value of data can be imagined. Sometimes in order to test, we need to simulate the real environment, but we can't directly use the real data, so we need to make some data. Compared with Excel, I still think Python makes such "virtual" data more time-saving and labor-saving. [note] submit the technical ex ...

Added by MAXIEDECIMAL on Mon, 14 Feb 2022 13:38:48 +0200

Comparison and implementation of clustering algorithms

1, ForewordIt refers to the division of similar data together. The specific division does not care about this kind of label. The goal is to aggregate similar data together. Clustering is an unsupervised learning method.2, General process of clusteringData preparation: feature standardization and dimensionality reductionFeature selection: select ...

Added by scnjl on Mon, 14 Feb 2022 13:25:10 +0200

How to optimize a large number of if/else, switch/case in the code?

If there are many if else in the code, it is difficult to read and maintain. A programmer who doesn't reconstruct if else into high-quality code is not a good programmer. To be clear, not all if / else and switch / cases need to be optimized. When we find that there are "pain points" or "smell bad code", it is best to optim ...

Added by telsiin on Mon, 14 Feb 2022 13:12:34 +0200

Three ways of using Arduino to read PWM signal of RC receiver

Three ways of using Arduino to read PWM signal of RC receiver Note: Recently, the static change of the playing model requires the use of a 2.4Ghz RC controller to control arduino. I found an article on using Arduino to process PWM signal on the Internet. I think it's good. I hope it can help Tonghao. (translation and summary) https://www.benri ...

Added by debuitls on Mon, 14 Feb 2022 13:08:22 +0200

RocketMQ grayscale of full link grayscale

Author: Yi ZhanIn the previous series of articles, we have introduced the scenario of MSE for full link traffic control through the function of full link canary. We have learned how to realize the full link gray scale of RPC calls such as Spring Cloud and Dubbo, but it does not involve the traffic control in asynchronous scenarios such as messa ...

Added by eddieblunt on Mon, 14 Feb 2022 13:07:11 +0200

BOM and DOM operations

BOM and DOM operations What are BOM and DOM BOM refers to the object model of the browsing area, which enables js to operate the browser through it DOM refers to the document object model, which enables js to operate the front-end page (that is, all elements of HTML document) BOM needs to master operation window.open() - Open a n ...

Added by chris davies on Mon, 14 Feb 2022 13:06:18 +0200

LeetCode -- array

LeetCode brush question array 1, Array 1.1 definition of array An array is a collection of several objects with a certain order. The objects that make up the array are called array elements. Where the vector corresponds to a one-dimensional array and the matrix corresponds to a two-dimensional array. 1.2 storage characteristics of array Ar ...

Added by zMastaa on Mon, 14 Feb 2022 12:56:46 +0200