Recursive and non recursive implementation of fast sorting
The main reason why I write this blog is that for fast platoon, recursive implementation is so ingrained in our minds that our conditioned reflection is fast platoon. Is there any non recursive implementation? I haven't seen it before. It's also to deepen my understanding of recursion~
I won't talk ...
Posted by php_newB on Sat, 14 Mar 2020 13:39:34 +0100
Binary sort tree (Java implementation)
Binary sort tree (Java implementation)
1. Definition of binary sort tree
Binary sort tree, also called binary search tree, has the following properties if it is not empty:
If its left subtree is not empty, the values of all nodes on the left subtree are smaller than the values of its root nodes;
If ...
Posted by satanclaus on Fri, 13 Mar 2020 07:25:34 +0100
Week 1: Enumeration
Enumeration: a solution strategy based on trying answers one by one
Example 1: perfect cube
Description:
A perfect cubic equation is defined as (a^3) = (b^3) +(c^3) +(d^3). For example, 12, 6, 8, 10. Write a program to find all four tuples (a,b,c,d) for any given positive integer n (n < = 100), so th ...
Posted by Immortal55 on Thu, 12 Mar 2020 12:39:12 +0100
The beginnings of the rule engine Drools drools
1. Origin of the Rule Engine
One day the operation wants to develop a credit strategy to calculate the extra credit amount according to the following rules:
The original price of the order is less than 100 without additional points.
100-500 plus 100 points;
500-1000 plus 500 points;
1000 plus 1000 ...
Posted by Ausx on Thu, 12 Mar 2020 05:44:06 +0100
Read the summary of chapter 11.3.2 The CHAR and VARCHAR Types in the official MySQL 5.7 document
Author: Wei Xinping, the 5th MySQL practical class student of zhishutang, the 10th MySQL optimization class student, now works as a teaching assistant.
Maximum length of varchar(n) and char(n)
I believe that as a dba, it is often asked this question. What is the maximum length. How many bytes or how many characters. In fact, this is not very ...
Posted by Andre_Ng on Wed, 11 Mar 2020 12:59:35 +0100
Five common layouts of CSS
Five common layouts of CSS1, Single column layout
There are two common single column layouts:
Single column layout with the same width of header,content and footerA single column layout with the same width of header and footer and slightly narrow content
1. How to achieve
For the first type, first set w ...
Posted by zysac on Wed, 11 Mar 2020 12:48:34 +0100
javase team scheduling software system
The practice demo of extracting some functions from real projects
See the effect can be pulled to the end
brief introduction
**The software realizes the following functions:
1. When the software is started, create the company's partial member list (array) according to the given data
2. According t ...
Posted by angelssin on Wed, 11 Mar 2020 12:42:03 +0100
DS18B20 of 51 single chip microcomputer
Reading DS18B20 temperature sensor and programming
For the novice, DS18B20 basic concept is only to understand. The most important thing is to program DS18B20 with single-chip microcomputer, read the temperature information, and display the temperature information with digital tube, LCD1602 or upper com ...
Posted by jonaofarc on Tue, 10 Mar 2020 07:06:33 +0100
Add, delete, modify and query 2 of MySQL table
1. Database Constraints
1.1 NULL constraint
When creating a table, you can specify that a column is not empty:
-- Reset student table structure
DROP TABLE IF EXISTS student;
CREATE TABLE student (
id INT NOT NULL,
sn INT,
name VARCHAR(20),
qq_mail VARCHAR(20)
);
1. ...
Posted by herod1 on Tue, 10 Mar 2020 05:55:32 +0100
Do you know the underlying implementation of thread pools?Thread Pool Module Summary [Previous]
Hello, this is a blog to keep learning for your dreams.This is the fourth article to share my understanding of Thread Pool.The style of the article will always be told in a question and answer way, which is one of my personal favorites and is equivalent to a simulated interview.
What is the core idea of thread pooling?
By My First About thre ...
Posted by keefy on Mon, 09 Mar 2020 17:14:14 +0100