Leetcode problem solving algorithm greedy algorithm (python version)
1. The longest chain that a number pair can form
646. Longest number pair chain (Medium) Method 1: greedy algorithm Sort all pairs according to the size of the second number. The first step is to select the pair with the smallest ending number. Then, each step selects the number that does not conflict with the last selected number pair and ...
Added by zaiber on Thu, 10 Mar 2022 02:07:41 +0200
How to understand the residual network (resnet) structure and code implementation (pytoch) note sharing
In the network of deep learning, I think the most basic is the residual network. What I share today is not the theoretical part of the residual network. Just remember that the idea of the residual network runs through many network structures behind. If you understand the residual network structure, then some advanced network structures behind a ...
Added by cpharry on Thu, 10 Mar 2022 02:06:36 +0200
Recurrence analysis of Apache Dubbo deserialization vulnerability
preface
Learn the classic vulnerabilities of Apache Dubbo series
CVE-2019-17564
0x01 version affected
Dubbo 2.7.0 to 2.7.4 Dubbo 2.6.0 to 2.6.7 Dubbo all 2.5.x versions
0x02 environmental preparation
https://github.com/apache/dubbo-samples/tree/master/dubbo-samples-http Download the source code, switch the Dubbo version in pom, and fi ...
Added by Griven on Thu, 10 Mar 2022 02:05:39 +0200
Java handwriting thread pool
Thread pool
What is a thread pool
Thread pool is a thread usage mode. The thread pool will maintain multiple threads waiting to allocate tasks that can be executed concurrently. When a task needs thread execution, it will allocate threads from the thread pool to the task without actively creating threads.
Benefits of thread pooling
If we us ...
Added by ten31studios on Thu, 10 Mar 2022 02:02:59 +0200
[algorithm and data structure] talk about linear search method~
๐
preface
As we all know, algorithm and data structure is a necessary course for all computer majors. Algorithm not only reflects a person's logic ability, but also reflects a person's thinking ability. It is not only learning algorithms and data structures, but also a deep understanding of computer science.
In this article, we will star ...
Added by PunjabHaker on Thu, 10 Mar 2022 02:00:12 +0200
Explain the basic operation of Elasticsearch in detail
๐ข๐ข๐ข๐ฃ๐ฃ๐ฃ
Hello! Hello, everyone. I'm [one heart classmate], a highly motivated [Java domain blogger]! ๐๐๐
โจ Writing style of [one heart students]: I like to explain every knowledge point in [easy to understand] writing, rather than using [tall and tall] official statement.
โจ The field of the blog is the learning of back-end te ...
Added by gkostenarov on Thu, 10 Mar 2022 01:07:22 +0200
javascript advanced programming (Fourth Edition) lazy reading: Chapter 3
(46 - Chapter III 20218 + a1043)
grammar
Case sensitive
ECMAScript is case sensitive.
identifier
An identifier is the name of a variable, function, property, or function parameter.
An identifier consists of one or more of the following characters:
The first character must be a letter, underscore () Or dollar sign ($);The remainin ...
Added by yes3no2 on Wed, 09 Mar 2022 20:24:43 +0200
[nand2tetris : Chap7-8]Compiler-1(including python implementation)
Compiler stage-1
To simplify compilation and improve portability, an intermediate code is designed to run in a virtual machine. VM is a fictitious machine, but it can be ported and run on real machines of various architectures. The VM language covered in this chapter includes four commands: arithmetic, memory access, program flow, subrouti ...
Added by validkeys on Wed, 09 Mar 2022 19:51:41 +0200
Follow the react project (to P57)
The backend API interface is in this file, and the request path is known by the backend definition
List of fixed contents for each column (antd) About render parameters
Later, I'll verify these three parameters myself, and I don't know the difference between text and record. text and record are identical.
console.log(text === record ...
Added by Xeoncross on Wed, 09 Mar 2022 19:50:51 +0200
5. Lockless Shared Mode (top), CAS, Atomics
Contents of this Chapter
CAS and volatileAtomic IntegerAtomic ReferenceAtomic accumulatorUnsafe
1. Questions raised
There are requirements below to ensure accont. Thread security for withdraw withdraw method
public interface Account {
// Get Balance
Integer getBalance();
// Withdraw money
void withdraw(Integer amount);
...
Added by Azazeal on Wed, 09 Mar 2022 19:34:20 +0200