Data structure (C language version) -- diagram notes

1. Definitions and basic terms of drawings ①. Definition of graph Graph G is composed of two sets V and E, marked as G=(V,E), where V is the finite nonempty set of vertices, e is the finite set of vertex pairs in V, and these vertex pairs are symmetrical as edges. V(G) and E(G) usually represent the vertex set and edge set of graph G re ...

Added by theelectricwiz on Sun, 20 Feb 2022 16:17:45 +0200

Collections class operation collection

Collections class operation collection Collections class is a tool class for manipulating collections such as Set,List and Map provided by Java. Collections provides many static methods for manipulating collections, with which collection elements can be implemented Sort, find, replace, and copy. The following describes the methods commonly use ...

Added by leeue on Sun, 20 Feb 2022 14:48:56 +0200

[actual combat] valid parentheses of LeetCode illustrated by ACM players

Hello, everyone. I'm handsome. Today, let's judge whether the brackets are valid. I don't know what to say. Let's start the whole thing. LeetCode 20: valid parentheses meaning of the title Given a string s that only includes' (',') ',' {','} ',' [','] ', judge whether the string is valid. Examples Input: s = "() [] {}" Outpu ...

Added by ccx004 on Sun, 20 Feb 2022 09:42:30 +0200

Basic data structure: linked list, monotone stack, monotone queue

1, Linked list and adjacency list 1 linked list    here, we do not use the commonly used structure plus pointer to realize the linked list, because in this way, each node should be new. The number of linked list nodes in common written test questions is 1e5~1e6 level, and new alone is enough to timeout.   so we use arrays ...

Added by ddragas on Sun, 20 Feb 2022 09:08:23 +0200

HashMap source code analysis + interview questions, based on jdk1 8 line by line analysis, this is enough for the interview!

Before reading this article, it is recommended to read the blogger's article on red black tree, which describes the evolution from binary sort tree → AVL tree → red black tree. Transmission address: Quick understanding of red and black trees HashMap source code analysis + interview questions 1, Hash introduction Core theory ...

Added by lingo5 on Sun, 20 Feb 2022 08:43:57 +0200

Make up a blockchain: serialize the data structure to see how digital currency transmits data

Students who have experience in blockchain development know that to develop smart contract applications, you first need to synchronize the Ethereum main network through geth, which means you need to download a lot of data from other nodes. In addition, when using blockchain technology, such as payment and receiving digital currency, the "w ...

Added by joebloggs1987 on Sun, 20 Feb 2022 08:05:13 +0200

Common code sharing of data structure and algorithm

Transferred from: Micro reading  https://www.weidianyuedu.com Data structure and algorithm are programmers' internal mental skills and basic skills. Whether in artificial intelligence or other computer science fields, mastering solid knowledge of data structure and algorithm will often help a lot! Today I recommend you a good data structure ...

Added by freakus_maximus on Sun, 20 Feb 2022 04:50:38 +0200

Java interview stereotyped Dictionary - Basic chapter

Basic chapter Key points of basic part: algorithm, data structure and basic design mode 1. Binary search requirement Be able to describe the binary search algorithm in your own languageAble to write binary search codeBe able to answer some changed test methods Algorithm description Premise: there is A sorted array A (assuming it is ...

Added by gausie on Sun, 20 Feb 2022 04:24:31 +0200

Data structure notes

data structure Sparse array queue Queue introduction Queue is a sequential list, which can be realized by array or linked list Follow FIFO rules. That is, the data stored in the queue should be taken out first. After storage, take it out Sketch Map: Array simulation queue The queue itself has a sequence table. If the structure o ...

Added by eddjc on Sun, 20 Feb 2022 03:19:17 +0200

Stack and queue exercise sorting

catalogue 1, Bracket matching problem 2, Implement a minimum stack 3, Implement queue with stack 4, Implement stack with queue 4.1} implement stack with two queues 4.2 implementing stack with a queue 5, Design cyclic queue 6, Next larger element 1, Bracket matching problem The title is described as follows: Solution idea: use th ...

Added by kettle_drum on Sat, 19 Feb 2022 21:41:16 +0200