The beauty of data structure and algorithm -- review of queue
1. Course content
For details, please refer to the course "beauty of data structure and algorithm" on "geek time": 09 | queue: application of queue in limited resource pools such as process pool (geekbang.org)
2. After class practice
code
Array queue
package dataStruct;
/**
* @ClassName ArrayQueue
* @Version 1. ...
Posted by mjurmann on Tue, 15 Feb 2022 15:02:38 +0100
Ajax asynchronous communication
Ajax overview
1. Function introduction (understanding)
Ajax, namely "Asynchronous Javascript And XML", refers to a web development technology for creating interactive web applications. Ajax can make web pages update asynchronously by exchanging a small amount of data with the server in the background. This means that a part of a web ...
Posted by rohithmr on Tue, 15 Feb 2022 14:58:42 +0100
[installation and configuration of Redhat automated operation and maintenance tool ansible]
ansible is an automatic operation and maintenance tool, which is developed based on Python. It integrates the advantages of many operation and maintenance tools (puppet, cfengine, chef, func and fabric), and realizes batch system configuration, batch program deployment and batch Run command And other functions. After installing Ansible, you do ...
Posted by [Demonoid] on Tue, 15 Feb 2022 14:20:10 +0100
vue route navigation guard
As its name suggests, the navigation guard provided by Vue router is mainly used to guard navigation by jumping or canceling. There are many opportunities to implant in the routing navigation process:
Overall,Exclusive to a single route,Or component level.
Global guard
Global pre guard router beforeEachGlobal resolution guard router befor ...
Posted by maniac1aw on Tue, 15 Feb 2022 14:15:20 +0100
Sword finger Offer: [day 1 stack and queue (simple)] --- > stack containing min function
1, Title Description
To define the data structure of the stack, please implement a min function that can get the smallest element of the stack in this type. In this stack, the time complexity of calling min, push and pop is all.
O
(
1
...
Posted by steelerman99 on Tue, 15 Feb 2022 14:00:23 +0100
Sequential list and linked list
1, Linear table
Linear table: when data is stored, it is stored continuously according to logic and forms a linear structure (feature: all have the concept of index, and the elements with smaller index must be logically arranged before the elements with larger index)
Linear list subset: sequential list, linked list, stack, queue, string ...
Posted by rsasalm on Tue, 15 Feb 2022 13:20:42 +0100
[design pattern] Template Method
Template Method
It is recommended to read the directory of C + + design patterns
motivation
In the process of software construction, for a task, it often has a stable overall operation structure, but each sub step has many change requirements, or it can not be realized at the same time with the overall structure of the task due to inherent r ...
Posted by footbagger on Tue, 15 Feb 2022 13:10:25 +0100
Automatic implementation of snake eating program in Python
Realization effect Let's see the effect first
It's much faster than my manual game, and it's stand-alone. The automatic game doesn't provoke me to scold. Ha ha, the whole automatic game of multiplayer game will be scolded to death~ code If the software is not installed, install the software first. If the module is not installed, install the p ...
Posted by vbracknell on Tue, 15 Feb 2022 12:47:35 +0100
How does OpenTelemetry do this: just detect the application once and send the data to any backend
OpenTelemetry (also known as OTel) is an open source observable capability framework, which is composed of a series of tools, API s and SDK s, enabling IT teams to detect, generate, collect and export remote monitoring data for analysis and understanding software performance and behavior.
Popular ones include Zipkin from Spring Cloud, CAT fr ...
Posted by Firestorm3d on Tue, 15 Feb 2022 12:45:31 +0100
[java] ThreadLocal memory leak code demonstration example
1. General
Reprint: ThreadLocal memory leak code demonstration example demonstration
First look at the article: Cause analysis of ThreadLocal memory leak
Related articles:
[high concurrency] ThreadLocal, InheritableThreadLocal
[Java] introduction and source code of ThreadLocal in Java
2. Cases
2.1 do not use ThreadLocal
The following ...
Posted by Myss on Tue, 15 Feb 2022 12:42:57 +0100