Wangdao C language short-term class -- week1 summary
preface
The first week mainly describes the basic grammar of C language, and the content is relatively simple; However, there are several challenging homework questions. This paper mainly records the class content and challenging homework of this week for self summary after class.
1, 2021 / 12 / 28 - Day1
Day1 describes various prepa ...
Posted by kayess2004 on Tue, 04 Jan 2022 18:01:40 +0100
Implementation of basic operation of queue
Implementation of basic operation of queue
Experimental purpose Master the abstract data type of queue, correctly select it in corresponding application problems, master the implementation method of queue (sequential and chained), the implementation algorithms of two storage structures and basic operations, pay attention to the judgment condi ...
Posted by R_P on Tue, 04 Jan 2022 17:51:04 +0100
The strongest C language tutorial in history -- pointer (Preliminary)
catalogue
1. What is the pointer?
2. Pointer and pointer type
2.1 pointer + - integer
2.2 dereference of pointer
3. Field pointer
3.1 cause of formation
3.2 how to avoid wild pointer
4. Pointer operation
4.1 pointer + - integer
4.2 pointer - pointer
4.3 pointer relation operation
5. Pointers and arrays
6. Secondary pointer ...
Posted by jsim on Tue, 04 Jan 2022 17:24:44 +0100
Data structure course design -- ticket sales system (C + +)
introduction
The data structure course design at the end of this semester requires us to complete a simple small program. I chose a ticket sales system to realize some basic functions; Because the time is short and I make up lessons in the review week, there is nothing outstanding. I'll talk about my code implementation and what can be further ...
Posted by motofzr1000 on Tue, 04 Jan 2022 15:17:53 +0100
leetcode brush questions / daily questions 116 Populates the next right node pointer for each node
116. Populate the next right node pointer for each node
Meaning:
Given a perfect binary tree, all leaf nodes are in the same layer, and each parent node has two child nodes. Binary tree is defined as follows:
struct Node {
int val;
Node *left;
Node *right;
Node *next;
}
Fill in each of its next pointers so that this pointer po ...
Posted by moonie on Tue, 04 Jan 2022 10:31:10 +0100
[Leetcode] 765. Couples Holding Hands (with mathematical proof)
Title address:
https://leetcode.com/problems/couples-holding-hands/
There is a given length
2
n
2n
2n array
A
A
A. Number by
0 ...
Posted by sunnypal on Tue, 04 Jan 2022 09:35:40 +0100
[learning notes] [Leetcode explanation by category] - linked list
Linked list related summary
The chain list problem is very easy to make mistakes. Please be sure to draw the process on the paper first. Please tear it by hand and draw a schematic diagram Virtual head node + iteration + recursion
The main types of linked lists are: single linked list, double linked list and circular linked listStorage mode o ...
Posted by daxxy on Tue, 04 Jan 2022 05:04:06 +0100
GPIO controller driver struct gpio_chip
gpio_chip
This chapter explains how to write drivers for these devices step by step, so it includes the following topics: GPIO controller driver structure and data structure Sysfs interface of GPIO controller Representation of GPIO controller in DT Driver architecture and data structure Drivers for such devices shall provide the following: ...
Posted by pvechi on Tue, 04 Jan 2022 05:02:05 +0100
Data structure - heap
Heap
Heap is a special kind of data structure in computer science. Heap can usually be regarded as an array object of a complete binary tree.Heap classification: the heap with the largest root node is called the maximum heap or large top heap, and vice versa is called the minimum heap or small top heap. Common heaps include binary tree heaps, ...
Posted by Sorrow on Tue, 04 Jan 2022 04:10:43 +0100
Data structure and algorithm 1 - linked list
Data structure and algorithm - linked list
Previous contents 1 - linked list 2-stack 3-queue 4-tree 5-fig 6-greedy algorithm 7-recursion and divide and conquer 8-sort 9 - query 10 - dynamic programming 11-STL Library
Basic concepts
Linear table: a finite sequence of zero or more elements
1, Storage structure of linear table
There ...
Posted by blacksnday on Mon, 03 Jan 2022 22:55:57 +0100