JAVA - light copy and deep copy
Understanding of java copy In the java language, when we need to copy an object, there are two common ways to copy; Deep copy and shallow copy. Shallow copy only copies the address of the original object, so when any value of the original object changes, the value of the copied object will also change. Deep copy copies all the values of the sou ...
Posted by gamerzfuse on Tue, 08 Mar 2022 11:39:25 +0100
JS object oriented
Object can encapsulate multiple associated data to better describe a thing. Using objects to describe things is more conducive for us to separate real things into a data structure in the code: therefore, some programming languages are pure object-oriented programming languages, which are better than Java; When creating any class, you need to ab ...
Posted by jasonmills58 on Tue, 08 Mar 2022 11:34:51 +0100
Agent mode of design mode
The design principle is a summary of some experience guiding our code design, that is, "mental method"; Object oriented is our "weapon"; Design pattern is "move".
Based on mental skill, use weapon moves to deal with complex programming problems.
Me: sister, what do I think you've been busy lately? Didn't you chang ...
Posted by faizulbari on Tue, 08 Mar 2022 11:33:17 +0100
Still using recursion, try iteration
Recursion & iterationrecursionRecursion is often used to describe the process of repeating things by self similar method. In mathematics and computer science, it refers to the method of using function itself in function definition. (A calls A)iterationRepeat the activity of the feedback process, and the result of each iteration will be used ...
Posted by MrTL on Tue, 08 Mar 2022 11:04:35 +0100
2055. Plates between candles / 54 Spiral matrix / 59 Spiral matrix II
2055. Plates between candles [medium] [daily]
Idea:
Record the number of plates in front of each position with cnt; Use left to record the position of the first candle on the left of the current position; Use right to record the position of the first candle on the right of the current position.Traverse each query, and define x as the posit ...
Posted by Schlo_50 on Tue, 08 Mar 2022 10:11:25 +0100
Spring transaction management
1. What is a business?
In a series of operations on the database, ensure that they succeed or fail at the same time, and there can be no partial success or partial failure. This series of operations is called database transactions.
2. Characteristics of transactions
Atomicity: refers to that a transaction is an inseparable work unit, ...
Posted by djsl on Tue, 08 Mar 2022 10:00:31 +0100
[learning notes] network programming
1. Introduction to network programming
link
1.1 what is a computer network?
packet What is a TCP connection? phone What is a UDP connection? send emails What is computer network? It refers to a computer system that connects multiple computers and their external devices with independent functions in different geographical locations throug ...
Posted by lopes_andre on Tue, 08 Mar 2022 09:47:13 +0100
Introduction and application of HttpClient
preface
Tip: Here you can add the general contents to be recorded in this article:
For example, with the continuous development of artificial intelligence, machine learning technology is becoming more and more important. Many people have started learning machine learning. This paper introduces the basic content of machine learning.
T ...
Posted by stanleyg on Tue, 08 Mar 2022 09:47:31 +0100
LeetCode 2055. The plate before the candle
subject
2055. Plates between candles
Method 1: dichotomy + prefix and
Algorithm flow:
Data preprocessing: scan the string s from front to back, record the candle subscript in the array list (the array is strictly incremented - binary basis), and preprocess the prefix and array of the plateTraverse queries:
For any query
...
Posted by chokies12 on Tue, 08 Mar 2022 09:29:59 +0100
The implementation of ffmpeg + nginx RTMP module + flv is not based on flash. There is no plug-in to play surveillance video
introduction
At present, the support of flash in the browser is getting worse and worse. The new version of Google has abandoned Flash support, and the conventional rtmp video streaming basically can not meet the technical requirements. At present, the solution is to convert rtmp to hls for playback. Under normal circumstances, the hls playbac ...
Posted by olsrey on Tue, 08 Mar 2022 09:23:29 +0100