Linear tables -- stacks and queues

The column is used to write the basic code definitions and algorithm problems of each data structure, which is convenient for sorting out ideas. The algorithm questions in this article are mainly encountered during personal learning. Because some of them correspond in LeetCode, the question number is attached for reference & only for pers ...

Added by Akito on Sun, 02 Jan 2022 15:26:05 +0200

Event Loop event loop

First, you need to understand what is Event Loop? Event Loop is an operating mechanism of computer system. JavaScript uses this mechanism to solve some problems caused by single thread operation. 1. Why is JavaScript single threaded? The single thread of JavaScript is related to its purpose. As a browser scripting language, JavaScript is ma ...

Added by Far Cry on Sun, 02 Jan 2022 09:42:45 +0200

Blocking queues and producer consumer cases

Blocking queue, as the name suggests, is a queue first, and the role of blocking queue in data structure is: Thread 1 adds elements to the queue, and thread 2 takes elements from the queue. When the blocking queue is empty, the operation of fetching elements from the queue will be blocked. When the blocking queue is full, adding elements to th ...

Added by TTT on Thu, 30 Dec 2021 09:46:31 +0200

java data structure, a case takes you to simulate queues with arrays, ring queues!

queue Queue is a sequential list, which can be implemented by array (sequential storage) or linked list (linked storage).Follow the principle of first in, first out. That is, the data stored in the queue should be taken out first. After the deposit, it shall be taken out. Simulating queues using arrays The queue itself has a seque ...

Added by TexasOutdoors on Wed, 29 Dec 2021 02:18:05 +0200

Computer experiment of data structure (Chapter 3) II

Computer experiment of data structure (Chapter III) I 1. Input n (input by the user) numbers within 10, insert them into queue i every time i(0 ≤ i ≤ 9) is input, and finally connect the non empty queues in 10 queues into a chain in the order of queue number from small to large, and output all elements of the chain. Algorithm idea: e ...

Added by rallen102 on Sun, 26 Dec 2021 12:35:17 +0200

[Python data structure series] ☀️ Queue (sequential queue, chain queue, double ended queue) - knowledge point explanation + code implementation ☀️

Soul torture: why learn data structures? Data structure, to understand it bluntly, is to study the storage mode of data. Data storage has only one purpose, that is, to facilitate the reuse of data in the later stage. Therefore, the storage of data in computer storage space is by no means random, which requires us to choose a good way to store d ...

Added by umguy on Fri, 24 Dec 2021 21:13:25 +0200

Message queue RocketMQ: message retry

Article catalog Message queue RocketMQ: (I) overview Message queuing RocketMQ: (II) system architecture Message queue RocketMQ: (III) sending ordinary messages (three methods) Message queue RocketMQ: (IV) sequential messages Message queue RocketMQ: (V) delay message Message queue RocketMQ: (VII) batch messages Message queue RocketMQ: (VI ...

Added by jrtaylor on Fri, 24 Dec 2021 15:20:41 +0200

Ali was asked about the Java ThreadPool thread pool on both sides. After reading this article, he angered the interviewer

Advantages of thread pool The work done by the thread pool is mainly to control the number of running threads, put tasks into the queue during processing, and then start these tasks after threads are created. If the number of threads exceeds the maximum number, the exceeded threads queue up, wait for other threads to complete execution, and ...

Added by sectachrome on Thu, 23 Dec 2021 23:05:23 +0200

ActiveMQ Message Queuing implements Point-to-Point (Queue) and Publish/Subscribe (Topic)

(Message Queue Message Queue) JMS Preface JMS, Java Message Service Application Interface, is a Java platform API for Message-Oriented Middleware (MOM), used to send messages between two applications for asynchronous communication JMS is a vendor-independent API for accessing and receiving system messages, similar to JDBC(Java Database Co ...

Added by Bac on Wed, 22 Dec 2021 07:36:45 +0200

⭐ Introduction to algorithm ⭐ Queue monotone queue difficulty 02 - leetcode 1425 Restricted subsequence sum

🙉 If you don't eat or drink, you must brush the questions 🙉 C language free animation tutorial, punch in with me! 🌞 Daylight science C language 🌞 LeetCode is too hard? Look at the simple questions first! 🧡 100 cases of introduction to C language 🧡 Difficult data structure? It doesn't exis ...

Added by cyprus on Wed, 22 Dec 2021 04:02:21 +0200