Java Language Learning Summarizes the Concepts of Advanced Text Inheritance and Its Use
inherit
Java has three main object-oriented features: encapsulation, inheritance, polymorphism, inheritance is a prerequisite for polymorphism, there is no polymorphism without inheritance.Inheritance refers to the abstraction of attributes common to several classes into a class that, when defining a ...
Posted by labourstart on Thu, 23 Jan 2020 08:05:37 +0100
2019 interesting program design competition for freshmen of Xiangtan University (recurrence competition) (review and supplement)
A 15 and 20
Portal
Simulation direct up
#include<bits/stdc++.h>
using namespace std;
int main() {
int t;
scanf("%d",&t);
while(t--) {
int a1,b1,c1;
scanf("%d%d%d",&a1,&b1,&c1);
int a2,b2,c2;
scanf("%d%d%d",&a2,&b2,&c2);
...
Posted by Spartan 117 on Tue, 21 Jan 2020 14:24:27 +0100
On the principle of thread pool
Status of thread pool
First let's look at some variables defined in the ThreadPoolExecutor class:
volatile int runState; //volatile is a type modifier.
//volatile is used as an instruction key to ensure that this instruction will not be omitted due to compiler optimization.
static final int RUNNING ...
Posted by intodesi on Tue, 21 Jan 2020 13:45:39 +0100
Nacos get configuration source code interpretation (detailed explanation)
Background:
Today's network services are mostly distributed cluster deployment, and the adopted architecture is also service-oriented architecture (SOA). Everyone is striving in the field of service governance. No, today's Nacos is also a product of the field of service governance. Nacos is an ex ...
Posted by hassank1 on Tue, 21 Jan 2020 13:42:03 +0100
Using NatureDQN to play and make bricks
Using NatureDQN to play and make bricks
target
Try the first edition
The foundation of building bricks
Preprocessing
Image preprocessing
State preprocessing
Network design
Second version attempt
Third version attempt
Code directory:
target
Playing brick is a relatively complex game in gym ga ...
Posted by glitch003 on Tue, 21 Jan 2020 12:01:01 +0100
AQS (AbstractQueuedSynchronizer) source code Guide: lock acquisition and release
What is AQS?
AQS is an abstract synchronization framework, which can be used to implement a state dependent synchronizer.
Provides a framework for implementing blocking locks and related synchronizers (semaphores, events, etc) that rely on first-in-first-out (FIFO) wait queues. This class is designed to be a useful basis for most kinds of syn ...
Posted by simpli on Mon, 20 Jan 2020 16:27:23 +0100
Sklearn of Python
1. Introduction to sklearn
Scikit learn (sklearn) is a common third-party module in machine learning. It encapsulates common machine learning methods, including regression, dimension reduction, classification, clustering and other methods. When we face the problem of machine learning, we can choose the ...
Posted by roldahayes on Sun, 19 Jan 2020 14:03:08 +0100
Process management of linux system
Preface
We have an operating system to run user programs. The running of programs needs to transfer processes, so process management is the heart of all operating systems.
In fact, a process is the result of current events in the executing program code.
Process understanding
Process:
A process is a ...
Posted by GooberDLX on Sun, 19 Jan 2020 13:19:44 +0100
Data Structure-Cyclic Queue
Data Structure-Cyclic Queue (C Language)
To learn circular queues, first understand the queues.A queue is a first-in-first-out linear table that allows insertion only at one segment of the table and deletion of elements at the other end.The end allowed to insert in the queue is the end of the queue, ...
Posted by halojoy on Sun, 19 Jan 2020 02:49:38 +0100
Solution to problem 18 of leetcode (python analysis)
leetcode brush inscription -- > 18 problem solving method (python analysis)
Definition of title
Solving problems
1. Use dichotomy
2. Optimization by dichotomy
3. Use recursive thinking
4. Continue to optimize the dichotomy
Realization
Definition of title
Given a n array of N integers nums a ...
Posted by freephoneid on Sat, 18 Jan 2020 18:46:15 +0100