Open volume data structure - linked list

💟 About the author: Hello, I'm Ceylan_, You can call me CC ❣️      📝 Personal homepage: Ceylan_ Blog 🏆 Blogger information: ordinary freshmen have extraordinary dreams Column Prepare for the Blue Bridge Cup    One question per day PTA ladder race ⚡ I hope you can give me more support 😘 Progress together~ ❤️ 🌈 If helpfu ...

Added by gere06 on Tue, 08 Mar 2022 14:08:59 +0200

In 2021, specially inserted candidates carefully sorted out the notes of computer foundation and data structure

Must do problem sorting At 21:40 on April 11, 2021, I was very skeptical about life after the exam. I originally wanted to rely on professional courses to score points. I also expected that there would be a large number of applicants for specialized courses this year. In addition, the reform of professional courses should be simpler, but I did ...

Added by KingIsulgard on Tue, 08 Mar 2022 13:26:58 +0200

Atlantis [line segment tree + scanline + discretization]

Atlantis [line segment tree + scanline + discretization] POJ1151,ACwing247 Title: Several ancient Greek books contain descriptions of the legendary island of Atlantis. Some of them even include partial maps of the island. Unfortunately, these maps describe different areas of Atlantis. Your friend Bill must know the total area of the map. ...

Added by Moharo on Tue, 08 Mar 2022 11:34:00 +0200

190.84 million unexpectedly smart editors

Byte runout 2019 spring recruit R & D part programming question summary My name is Wang dachui. I'm the editor of a publishing house. I am responsible for proofreading the English manuscripts submitted. This job is very annoying because I have to correct countless spelling mistakes every day. However, excellent people can always find the t ...

Added by chucklarge on Tue, 08 Mar 2022 05:20:48 +0200

Hash table management employee information

Basic introduction of hash table Hash table (also known as hash table) is a data structure that is accessed directly according to the key value. That is, to speed up the search by mapping it to a key in the table. This mapping function is called hash function, and the array storing records is called hash table. (the bottom layer of hash table ...

Added by emorr1981 on Mon, 07 Mar 2022 23:27:57 +0200

Leetcode[300. Implement Trie] - prefix tree

Leetcode[300. Implement Trie] - prefix tree Title: Trie (pronounced like "try") or prefix tree is a tree data structure used to efficiently store and retrieve keys in string data sets. This data structure has many application scenarios, such as automatic completion and spell checking. Please implement the Trie class: Trie() Initia ...

Added by ignite on Mon, 07 Mar 2022 22:13:56 +0200

Linear table of data structure C/C + + implementation

Note: C is basically used, except that C + + uses references& Sequence table 1, The pointer can be declared as long, but it also needs to be implemented as long. #define MaxSize 50 typedef struct{ ELemType data[MaxSize]; int len; }SqList; 2, Definition of operation A data structure has many operations, but it's too difficult ...

Added by sublimenal on Mon, 07 Mar 2022 14:03:28 +0200

The 12th Blue Bridge Cup Java group B provincial competition (title and AC Title Solution)

Question 1: ASCII code [problem description] It is known that the ASCII code of capital letter A is 65. What is the ASCII code of capital letter L? [answer submission] This is a question filled in with results. You just need to calculate the results and submit them. The result of this question is one An integer. Only fill in this intege ...

Added by JaGeK on Mon, 07 Mar 2022 13:48:18 +0200

Monotone queue optimization for multiple knapsack problems

Monotone queue optimization for multiple knapsack problems Warm tips: it's better to eat dessert first and then enter the dinner~ 0-1 backpack problem (dessert) https://www.acwing.com/problem/content/2/ Simple solution #include <iostream> using namespace std; const int N = 1010; int n, m; //n number of items m maximum capacit ...

Added by hardyvoje on Mon, 07 Mar 2022 12:37:59 +0200

Algorithm_ Greedy algorithm_ The best time to buy and sell stocks II

The best time to buy and sell stocks II leetcode link 1. Solution Solution 1 First of all, the first idea is to find a relatively low share price to buy, and then find a relatively high share price to sell, and then repeat. Therefore, the current problem is how to determine the position of relatively low stock price and relatively high ...

Added by j_70 on Mon, 07 Mar 2022 03:32:46 +0200