Merge sort algorithm - C++

The main idea of merge sort algorithm is to merge two ordered arrays into an ordered array. Its key point adopts the "divide and conquer idea". The "divide" is a dichotomy, which divides the unordered array into ordered arrays, and then through the "divide and conquer"   Merge two ordered arrays into one orde ...

Posted by matvespa on Sat, 06 Nov 2021 10:08:50 -0700

Function and script debugging method in shell

1. Function format Objective: to turn some opposed codes into functions, provide readability and reusability, and avoid writing the same code repeatedly.Function format: Function keyword: function can be omitted without any parameters;The symbol {indicates the beginning of the function body (a separate line after the function name can be us ...

Posted by Boom.dk on Sat, 06 Nov 2021 09:41:52 -0700

. netCore3.0 + WebApi + Vue2.0 project construction - use of and Swagger

1, What is Swagger Swagger is a normative and complete framework for generating, describing, invoking, and visualizing RESTful Web services. The overall goal is to make the client and file system update at the same speed as the server. The file's methods, parameters and models are tightly integrated into the server-side code, allowing the API ...

Posted by robgudgeon on Sat, 06 Nov 2021 09:34:48 -0700

Interface in 03ts

1, Object type object represents a non primitive type, that is, a type other than number, string, boolean, symbol, null or undefined. object types can take several forms: object typeArray typeClass typeFunction type These forms are called object types in TypeScript. 1. Object type: For example, we write an object that represents the basic ...

Posted by maliskoleather on Sat, 06 Nov 2021 09:18:59 -0700

Using Docker Desktop to build zookeeper cluster under win10

1. Installation 2. Configure alicloud 3. Get image There are many online tutorials in these three steps, so I won't write them. Because each version may bring some changes, I'll talk about the version I use zookeeper:3.7.0 Docker Desktop 4.1.1 Windows 10 professional 21H1 4. Configure docker-compose.yml If it is too troublesome to configure d ...

Posted by hotcigar on Sat, 06 Nov 2021 08:55:02 -0700

Effective C + + learning notes (clause 11: handle "self assignment" in operator =)

Recently, I started to watch Effective C + +. In order to facilitate future review, I specially took notes. If I misunderstand the knowledge points in the book, please correct!!! "Self assignment" means to assign values to yourself, such as: class Widget{...}; Widget w; w = w; //Assign yourself a value This looks stupid, but it' ...

Posted by eashton123 on Sat, 06 Nov 2021 08:54:50 -0700

Reorganize. net core practice -- filter [44]

preface Briefly introduce filter text The type of filter, written in the Microsoft document: Each filter type executes at different stages in the filter pipeline: The authorization filter runs first to determine whether the user has been authorized for the request. If the request is not authorized, the authorization filter can short circuit th ...

Posted by PHPcadet on Sat, 06 Nov 2021 08:27:13 -0700

GoLang design pattern 12 - empty object pattern

Empty object design pattern is a behavioral design pattern, which is mainly used to deal with the inspection of empty objects. Using this design pattern avoids checking empty objects. That is, in this mode, using empty objects does not cause exceptions. The components of the empty object pattern include: Entity: interface, which defines the me ...

Posted by gsaldutti on Sat, 06 Nov 2021 08:18:51 -0700

Chapter 3 - subsection 3.3 of learning notes of C + + new classic course (important)

  This blog will record: notes of relevant knowledge points of class! (this has been learned once when learning the basic course of C + +, which is just a brief review here again) This knowledge is divided into the following five points:   1, Implement the member function inline in the class definition   2, const at the end ...

Posted by urgido on Sat, 06 Nov 2021 08:04:11 -0700

Without Cgroups, there would be no Docker

What are Cgroups? Cgroups is the abbreviation of control groups. It is a mechanism provided by the Linux kernel that can limit, record and isolate the physical resources (such as cpu,memory,IO, etc.) used by process groups. Originally proposed by google engineers, it was later integrated into the Linux kernel. What can Cgroups do? The initial g ...

Posted by karq on Sat, 06 Nov 2021 07:58:30 -0700