Aha! Algorithm Chapter 2 - Section 1 - decrypt QQ number

Decrypt QQ number - queue The new semester begins. Xiaoha is xiaohum's new deskmate (xiaoha is a little beauty). Xiaohum asks xiaoha about the QQ number. Of course, xiaoha won't tell xiaohum directly. You know the reason. So xiaoha gave xiaohum a string of encrypted numbers, and xiaoha also told xiaohum the decryption rules. The rule is as f ...

Posted by srikanthiv on Mon, 23 May 2022 14:04:57 +0300

Analysis and java implementation of search related topics in binary tree in Leetcode

Analysis and java implementation of search related topics in binary tree in Leetcode In fact, there are some miscellaneous problems in this category. It is basically to find some or a specific value in the binary tree. There are many problems. We will summarize them through two or three articles, but generally speaking, it is basically BFS, whi ...

Posted by HavokDelta6 on Mon, 23 May 2022 10:13:08 +0300

rabbitmq message sending and receiving & stomp channel test

Newcomers are welcome to communicate and point out their mistakes~~ Problems found: After installing Erlang and rabbitmq clients, enable the plug-in rabbitmq plugins enable rabbitmq_ web_ Unable to access after Stomp http://localhost:15674/stomp/info , baidu still couldn't solve this access problem after a long time, and once thought that its ...

Posted by Duell on Thu, 19 May 2022 11:09:09 +0300

leetcode | stack and queue

232. Implement queue with stack (simple) Use the stack to implement the following operations of the queue: push(x) -- put an element at the end of the queue. pop() -- removes the element from the queue header. peek() -- returns the element at the head of the queue. empty() -- returns whether the queue is empty. Example: MyQueue queue = new MyQ ...

Posted by marian on Tue, 17 May 2022 14:29:27 +0300

Java thread pool must know and know

Java thread pool must know and know To know why it is, we should know why it is. In the process of using thread pool, do you understand why we should do this and how to configure thread pool to have better effect? Why should thread pool be used Thread pool is actually a way of using multithreading. In terms of design, it is a production c ...

Posted by beanfair on Sun, 15 May 2022 23:50:25 +0300

[Backtracking interview questions] facebook interview questions - letter combinations of phone numbers (two solutions)

content Topic description Backtracking solution Solve using queues Topic description Title address: https://leetcode-cn.com/problems/letter-combinations-of-a-phone-number/ Given a string containing only the numbers 2-9, return all letter combinations it can represent. The mapping of numbers to letters is given as follows (same as phone k ...

Posted by johnpaine on Sat, 07 May 2022 10:12:49 +0300

springboot integrates ActiveMQ messaging middleware

As a message middleware supporting JMS specification, activeMq, as the third party between the sender and receiver, can decouple the system application, make the message asynchronous transmission and processing, and even solve the problem of traffic peak. Support point-to-point and point to many (subscription publish) modes. (other peers includ ...

Posted by stokie-rich on Fri, 06 May 2022 22:46:36 +0300

Binary tree of java data structure

Binary tree implementation //Node class of tree public class TreeNode<T> { //Store data public T data; //Point to left child and right child nodes public TreeNode<T> left,right; public TreeNode(T data, TreeNode<T> left, TreeNode<T> right) { super(); this.data = data; this.le ...

Posted by Ambush Commander on Fri, 06 May 2022 08:18:21 +0300

Data structure Exercise - linked list (linear list, stack and queue) - delete elements greater than x and less than y in the linked list / local inversion of single linked list

Article launch and subsequent updates: https://mwhls.top/1034.html For new updates, please go to mwhls.top see. There is no picture / format error. Please check the first page of the article at the top. Data structure Exercise directory Single choice questions If the head of the single linked list that does not take the lead no ...

Posted by james182 on Tue, 03 May 2022 16:20:34 +0300

Talk about multithreaded producer consumer model

Producer consumer model In the thread world, the producer is the thread of production data, and the consumer is the thread of consumption data. In multi-threaded development, if the processing speed of the producer is very fast and the processing speed of the consumer is very slow, the producer must wait for the consumer to finish processing b ...

Posted by Mightywayne on Sun, 01 May 2022 14:28:50 +0300