Introduction and creation of Huffman Tree
1. Basic introduction
Huffman tree, alias "Huffman tree", "Huffman tree", "optimal tree" and "optimal binary tree" Given n weights as n leaf nodes, a binary tree is constructed. If the weighted path length (wpl) of the tree reaches the minimum, such a binary tree is called the optimal binary tree, also ...
Posted by Lautarox on Sat, 19 Feb 2022 10:31:56 +0100
Java implementation PDF dynamic insert picture check box
(1) Requirement description
Build PDF template and realize dynamic insertion of some data. It is mainly divided into three components: ordinary text, check box, QR code and dynamic insertion of pictures
(2) Make template
Because the commonly used software of pdf doesn't support editing, we first use WPS to edit in the form of Word to mak ...
Posted by marketboy on Sat, 19 Feb 2022 10:05:28 +0100
Spring boot integrates redis (multiple data sources)
Official website: https://spring.io/projects/spring-data-redis
Spring Data Redis is a part of the spring data series. Redis can be easily configured and accessed from spring applications, and supports low-level and high-level abstract interfaces. You can see that spring data provides the following technical solutions:
There are already exce ...
Posted by parkie on Sat, 19 Feb 2022 09:46:28 +0100
A headline algorithm problem, an unknown solution!
subject
Enter the integer array arr to find the minimum number of k. For example, if you enter 8 numbers: 4, 5, 1, 6, 2, 7, 3 and 8, the smallest 4 numbers are 1, 2, 3 and 4.
Example 1:
Input: arr = [3,2,1], k = 2 output: [1,2] or [2,1] example 2:
Input: arr = [0,1,2,1], k = 1, output: [0]
Restrictions:
0 <= k <= arr.length &l ...
Posted by thinfile on Sat, 19 Feb 2022 09:37:24 +0100
Dubbo's article is enough: from introduction to actual combat
catalogue
Why do I need dubbo
II. Dubbo technical architecture
Third, Dubbo starts getting started
3.1 server
3.2 consumer side
4. Join zookeeper as the registration center
4.1 server
4.2 consumer side
Five configurations
5.1 API configuration mode
5.2 annotation configuration mode
Six common scenarios
6.1 check at startup
6.2 ...
Posted by mandred on Sat, 19 Feb 2022 09:32:33 +0100
[2021] java interview questions from scratch (java Basics)
preface
*** I think the basic boss can leave early. Take time to update this column after work
java Foundation
1. What is object-oriented?
object oriented is to pay more attention to the participants (objects) of things and what they need to do. (process oriented, paying more attention to every step and sequence of things) it ...
Posted by irishjohnny24 on Sat, 19 Feb 2022 09:20:39 +0100
Spring event framework extension - custom policy listening
Recently, when using Spring event framework to write business development, due to the functional limitations of Spring event framework, it can not well meet our development needs. Therefore, after reading the Spring event source code, the Spring event framework has been expanded. The process will be described in detail below.
Problem Descripti ...
Posted by Traveller29 on Sat, 19 Feb 2022 09:09:09 +0100
Day86 sliding window maximum
Give you an integer array nums, with a sliding window of size k moving from the leftmost side of the array to the rightmost side of the array. You can only see k numbers in the sliding window. The sliding window moves only one bit to the right at a time. Returns the maximum value in the sliding window
https://leetcode-cn.com/problems/sliding-w ...
Posted by jokeruk on Sat, 19 Feb 2022 08:43:14 +0100
Inventory springboot: application main process
I preface
This article introduces the main process of SpringBoot Application
The main process entry of spring application is very simple:
@SpringBootApplication
public class BaseApplication {
public static void main(String[] args) {
SpringApplication.run(BaseApplication.class, args);
}
}
1 > use @SpringBootApplication Not ...
Posted by rajan on Sat, 19 Feb 2022 08:05:43 +0100
Express E stack (console simple version) system (array)
Write before: 1. This article is a review of all projects in the first phase of the fifth part of java learning (express e station part - corresponding to the first phase of the first part of Java System - 04 array task) 2. Overall project series blog (including overall express e-station Series) 3. Complete java system link (more Java content t ...
Posted by JayNak on Sat, 19 Feb 2022 07:06:20 +0100