The performance of the server is relatively good. I want to run programs conveniently on the server, so I establish jupyter on the server, and then access the jupyter web page locally through connection for operation;
In addition, I want to be familiar with nginx and facilitate the construction of websites later.
A more popular bac ...
(1) Idempotent definition
1. Idempotent definition in Mathematics
In programming, the characteristic of an idempotent operation is that the impact of any multiple execution is the same as that of one execution. Idempotent functions, or idempotent methods, refer to functions that can be executed repeatedly with the same parameters ...
Added by FijiSmithy on Sat, 05 Mar 2022 10:27:49 +0200
1. What is a Condition
Any Java Object has a set of monitor methods (defined on java.lang.Object), mainly including wait(), wait(long timeout), notify() and notifyAll() methods. These methods cooperate with the synchronized synchronization keyword to realize the wait / notification mode. The Condition interface also provide ...
Added by MitchEvans on Sat, 05 Mar 2022 06:42:03 +0200
1. Longest substring without repeated characters (stress deduction 3)
Given a string s, please find the length of the longest substring that does not contain duplicate characters.
input: s = "abcabcbb"
explain: Because the longest substring without duplicate characters is "abc"，So its length is 3.
You can use "s ...
Added by phpfre@k* on Sat, 05 Mar 2022 05:25:02 +0200
LinkedHashMap inherits from HashMap. In addition to the features of HashMap, LinkedHashMap also provides the function of keeping the same traversal order and insertion order.
LinkedHashMap maintains a two-way linked list to ensure the consistency of traversal and insertion order.LinkedHashMap can be understood as a combin ...
Added by sports on Sat, 05 Mar 2022 04:27:20 +0200
Question 1: AtomicInteger thread safety principles
The basic atomic class (taking AtomicInteger as an example) is mainly implemented through the CAS spin + volatile scheme, which not only ensures the thread safety of variable operation, but also avoids the high overhead of synchronized heavyweight locks, which greatly improves the executio ...
8. Bitwise operator
& | ^
Convert the operand to binary, and then operate according to the rules of the operator, and the final result is converted to decimal
&: two numbers in the same bit. If both are 1, it is 1, and if one is 0, it is 0|: two numbers in the same bit, one is 1, and both are 0^: two numbers in the same bit, the same ...
Added by laura_richer on Sat, 05 Mar 2022 02:50:56 +0200
Storage structure of sequence table
(1) When a high-level programming language such as c language is used to describe the problem of data structure, the method to realize the sequential storage structure is to use array. (2) There are two kinds of arrays: static array and dynamic array. The application and release of static array storage space ...
Added by herreram on Sat, 05 Mar 2022 02:04:46 +0200
👏 About the author: Hello, I'm cabbage ~ ~, a sophomore in school, and a new star creator in the Java field.📝 Personal homepage: Cabbage CSDN blog📕 Series column: This article is written in the SpringBoot column: Explanation of SpringBoot knowledge points📧 If there are mistakes in the knowledge points of the article, please correct them! Le ...
Added by Chupa85 on Sat, 05 Mar 2022 01:29:21 +0200
In Java, a class can be defined in another class or a method. Such a class is called an inner class.
In a broad sense, internal classes generally include these four types: member internal classes, local internal classes, anonymous internal classes and static internal classes.
Member inner class
Member inner class is the most ...
Added by joeysarsenal on Fri, 04 Mar 2022 23:42:35 +0200