P4428-[BJOI2018] binary [tree array, set]

Topic Title Link: https://www.luogu.com.cn/problem/P4428 General idea of the topic Count Reg n n n 0 / 1 0/1 0 / 1 string requires su ...

Posted by bruceg on Wed, 19 Jan 2022 12:15:46 +0100

[LeetCamp notes] use of data structure in the first week

1. Introduction Common operations of data structure: insert, delete and find. That is, a data structure should generally have the functions of inserting, deleting and searching. For example, for the stack, the operations supported by the stack are inserting and deleting from the top of the stack. You cannot operate at the bottom of the stack o ...

Posted by cougarreddy on Wed, 19 Jan 2022 11:16:11 +0100

Data structure -- one-way ring linked list | Joseph problem

The origin of Joseph's problem, let's tell a little story first It is said that the famous Jewish historian Josephus had the following story: after the Romans occupied jotapat, 39 Jews hid in a cave with Josephus and his friends. 39 Jews decided that they would rather die than be caught by the enemy, so they decided a way of suicide. 41 people ...

Posted by jlambert on Wed, 19 Jan 2022 10:14:41 +0100

An interview was asked about ArrayMap, the principle and source code analysis in detail

1, Foreword In SparseArray detailed explanation and source code analysis, we are familiar with the basic usage, characteristics and implementation principle of SparseArray. There is also an equally important data structure ArrayMap in the toolkit of the Android SDK. Its purpose is to replace HashMap when the amount of data is small, such as hu ...

Posted by signer on Wed, 19 Jan 2022 07:47:22 +0100

Point divide and conquer super detailed analysis + Video Explanation + topic collection (no longer worry about point divide and conquer)!

I Analysis and application of point divide and conquer principle II Point divide and conquer Video Explanation Video link https://www.bilibili.com/video/BV1PE41197md?p=1 III Dot divide and conquer exercise 1.P3806 [template] point divide and conquer 1 1.P3806 [template] point divide and conquer 1 Analysis: the paths of two ...

Posted by thinfile on Wed, 19 Jan 2022 06:33:23 +0100

Single linked list of Java data structure (with detailed drawings, easy to understand)

Single linked list of Java data structure (with detailed drawings, easy to understand) (this note mainly introduces one-way non leading node acyclic linked list) It's not easy to sum up. I hope uu you won't be stingy with your work 👍 Yo (^ u ^ ~ yo!! The linked list is a discontinuous storage structure in the physical storage structure. T ...

Posted by Masca on Wed, 19 Jan 2022 06:07:44 +0100

Java arrays that can't be used, from bronze to King, fully parsed arrays, recommended collection!!!

Like and watch again to form a habit catalogue 1. Definition of array 2. array traversal 3. Conversion between List and array 4. Possible problems Regular benefits 1. Definition of array Declare before use Data type [] array name = new data type [length]; String[] arr3 = new String[5]; Data type array name [] = new data type ...

Posted by jmdavis on Wed, 19 Jan 2022 03:04:55 +0100

The most basic dynamic data structure: linked list

What is a linked list? Linked list is not only a linear structure, but also the most basic dynamic data structure. When we implement dynamic arrays, stacks and queues, the bottom layer relies on static arrays and resize s to solve the problem of fixed capacity, and the linked list is a real dynamic data structure. Learning the data structure o ...

Posted by Muggin on Wed, 19 Jan 2022 01:45:42 +0100

Data structure - sorting

Experimental preparation: 1. Understand and master the basic concepts and methods of direct insertion sort, half insertion sort, 2-way insertion sort, bubble sort and quick sort. 2. Master the basic idea of sorting algorithm. 1, Experimental purpose Master the implementation of the basic idea of sorting algorithm.Through experiments, master ...

Posted by ted_chou12 on Tue, 18 Jan 2022 21:27:46 +0100

c + + basic STL Part 4 (queue container and list container)

A basic concept of queue container Concept: queue is a first in first out (FIFO) data structure. The queue container allows elements to be inserted from one end and removed from the other end. explain: Usually, the head of the queue is to remove data, and the tail of the queue is to insert data;There is no iterator operation in the queue, ...

Posted by afhouston on Tue, 18 Jan 2022 20:35:28 +0100