Hash table of data structure

Hash table, also known as hash table, can also be translated into hash table directly. Hash table is a data structure that can be accessed directly according to key - value. It is based on the array and speeds up the search speed by mapping keywords to a subscript of the array. However, it is different from the data structures such as array, li ...

Added by realestninja on Thu, 24 Feb 2022 05:25:55 +0200

Unit test framework -- Mockito

Problems encountered in unit testing in current development After the business code development is completed, the new code needs to be unit tested. Due to the large number of third-party components and external system interfaces that the project depends on, the whole project needs to be started and various dependencies need to be loaded ev ...

Added by bijukon on Thu, 24 Feb 2022 05:00:48 +0200

Simple solution of HashMap source code

jdk1.7 -: it is composed of array + linked list. The array is the main body. The linked list mainly exists to solve hash conflicts (i.e. the array index values calculated through the key are the same) (the "zipper method" solves conflicts). jdk1.8 +: it is composed of array + linked list + red black tree. There are great changes in r ...

Added by simpjd on Thu, 24 Feb 2022 04:51:51 +0200

C + + smart pointer

Memory leak What is a memory leak: A memory leak is a condition in which a program fails to free memory that is no longer in use due to negligence or error. Memory leakage does not mean the physical disappearance of memory, but the loss of control over a certain section of memory due to design errors after the application allocates it, res ...

Added by mustatin on Thu, 24 Feb 2022 04:49:33 +0200

STM32G431 serial port DMA transmission

1. Introduction to G4 series DMA First, introduce the DMA of G4 series. Although the G4 series of 32 is based on the M4 kernel, its DMA channel mapping is quite different from the common F407. First, paste some pictures in the reference manual: I don't know what you can think of after seeing these two pictures. I believe friends who have see ...

Added by MinDFreeZ on Thu, 24 Feb 2022 04:38:19 +0200

[voice processing] audio data processing based on matlab GUI [including Matlab source code phase 1734]

1, Introduction to speech processing 1 Characteristics of voice signal Through the observation and analysis of a large number of voice signals, it is found that voice signals mainly have the following two characteristics: ① In the frequency domain, the spectral components of speech signals are mainly concentrated in the range of 300 ~ 3400Hz. ...

Added by prestonwinfrey on Thu, 24 Feb 2022 04:28:08 +0200

[speech processing] audio signal extraction and analysis based on matlab GUI [including Matlab source code 1738]

1, Introduction to speech processing 1 Characteristics of voice signal Through the observation and analysis of a large number of voice signals, it is found that voice signals mainly have the following two characteristics: ① In the frequency domain, the spectral components of speech signals are mainly concentrated in the range of 300 ~ 3400Hz. ...

Added by Agtronic on Thu, 24 Feb 2022 04:26:53 +0200

Leetcode322: medium, BFS

catalogue 1. Title Description 2. Problem solving analysis 3. Code implementation 1. Title Description Give you an integer array of coins to represent coins of different denominations; And an integer amount, representing the total amount. Calculate and return the minimum number of coins required to make up the total amount. If no combin ...

Added by marco75 on Thu, 24 Feb 2022 03:59:29 +0200

Regular love message to girlfriend Daily Mail

I want to make a small gift for my girlfriend A few days ago is Valentine's day. It's too vulgar to send dolls. I want to use my knowledge. After all, I'm still half a programmer. Customize a daily email for my girlfriend. Learning materials for programming: Click to get them for free Decomposition task Let's break down the task. We need to: ...

Added by bals28mjk on Thu, 24 Feb 2022 03:54:29 +0200

Git series tutorial git basic operation 4

Git basic operation Git's job is to create and save snapshots of your project and compare them with subsequent snapshots. This chapter describes the commands for creating and submitting snapshots of your project. Git commonly uses the following six commands: git clone, git push, git add, git commit, git checkout and git pull, which will be d ...

Added by weekenthe9 on Thu, 24 Feb 2022 03:48:07 +0200