From shallow to deep, sort from heap to heap

All the code in this article is big root heap! The implementation language is Java The pictures are all from the great God, and the great God's articles also give me a lot of inspiration Heap of data structures Heap sort This video is easy to understand, from what is heap, what is heap, and then to the realization of heap sorting. It is ver ...

Posted by witham on Mon, 22 Nov 2021 21:07:41 +0100

[resolve data structure] explain the set structure in detail and implement a set

๐Ÿ“ข Hello, I'm Xiaocheng, a sophomore front-end enthusiast ๐Ÿ“ข This article will explain collections in data structures ๐Ÿ“ข Thank you very much for reading. You are welcome to correct the wrong places ๐Ÿ™ ๐Ÿ“ข May you be loyal to yourself and love life ๐Ÿ’ก First look at knowledge points What is a collection?What methods do collecti ...

Posted by bcoffin on Mon, 22 Nov 2021 12:40:27 +0100

Output, output and higher-order assignment of Python Foundation

0. Learning objectives Python is a concise, easy to learn, object-oriented programming language. It not only has powerful native data types, but also provides simple and easy-to-use control statements. stay Python based variables and built-in data types In, we introduced the built-in native data types in Python. The main goal of this ...

Posted by matthewdingley on Mon, 22 Nov 2021 10:40:18 +0100

Redis five data structures and common operation instructions, and how redis is encapsulated and used in JAVA

Redis has five basic data structures: 1. String (string) 2. List 3. Hash (Dictionary) 4. Set 5. Zset (ordered set) There are eight categories of data structures: 1. Array 2. Stack 3. Queue 4. Linked list 5. Tree 6. Hash table 7. Pile 8. Figure Java has eight basic data types (it doesn't matter, but by the way ๐Ÿ˜œ)๏ผŒ They are: 1. Byte (bit) 2. ...

Posted by lovesmith on Mon, 22 Nov 2021 05:13:53 +0100

Brush wave dynamic programming~

preface There are too few problems in dynamic programming. Brush some problems, practice the awareness of solving problems with dynamic programming and know some common skills.Each question in the article has written some important points and ideas for me to understand this question.If you have any questions, please comment. 1. Sword fi ...

Posted by The End on Mon, 22 Nov 2021 03:37:20 +0100

[JAVA data structure] realized by JAVA language - the basic function of headless two-way linked list (with super detailed code comments)

[preface] in the previous article, we have learned about the basic functions of sequential list and single linked list. Next, let's learn how to realize the basic functions of two-way linked list. First, let's take a look at the structure of the two-way linked list: Headless bidirectional linked list Concept and structure of bidirectio ...

Posted by Cronje on Sun, 21 Nov 2021 22:53:23 +0100

[C + + primary] List bottom framework Simulation Implementation

1, List frame construction 1. Introduction list is a sequential container that can be inserted and deleted at any position within the constant range, and the container can iterate back and forth.The bottom layer of list is the leading two-way linked list structure. Each element in the two-way linked list is stored in independent nodes t ...

Posted by marcela1637 on Sun, 21 Nov 2021 21:02:29 +0100

Interview sites: bubble sort, selection sort, insertion sort, merge sort and quick sort

Deep development post, in fact, sorting is also an inseparable link. Bubble sorting, selection sorting, insertion sorting, merge sorting, quick sorting and heap sorting are also the technical points I have frequently asked since the autumn move Sorting algorithm has two important knowledge points Memory consumption: the memory consumption o ...

Posted by programming.name on Sun, 21 Nov 2021 03:42:01 +0100

Chain structure of binary tree and some basic operations on chain binary tree

This paper summarizes some basic operations of chained binary tree in class, including Calculate the number of nodes of the binary treeCalculate the number of leaf nodes of binary treeCalculate the number of nodes in the K-th layer of the binary treeCalculate the depth / height of the binary treeFind and return the node with the value of x ...

Posted by Jenling on Sun, 21 Nov 2021 00:57:15 +0100

Constructing methods and objects in Java

1, Concept and application of construction method Constructor is a special method in. Its name must be exactly the same as that of its class, and there is no return value, and there is no need to use the keyword void for identification. For example: public class Apple{ public Apple(){//Default construction method } } 1. Default constru ...

Posted by elhelaly1999 on Sat, 20 Nov 2021 22:27:07 +0100