Multiplication and addition of univariate polynomials in linked lists (C language)
Multiplication and addition of univariate polynomials in linked lists (C language)
Foreword
It is only implemented in C language
This one should be the most orderly one (that is, it doesn't look big), but it is the longest one.
subject
Design the function and find the product and sum of two univariate polynomials respectively.
Input forma ...
Posted by s2j1j1b0 on Fri, 17 Dec 2021 10:25:24 +0100
Codeforces Round #761 (Div. 2) (A~D2)
Codeforces Round #761 (Div. 2)
A. Forbidden Subsequence
subject
Knowledge points
sort
Problem solving ideas
According to the meaning of the topic, it is easy for us to know when
T
=
a
b
c
...
Posted by dud3r on Fri, 17 Dec 2021 10:10:12 +0100
Do you know red and black trees? Tell you a different red and black tree and say something interesting!
Let's first look at the following two questions:
Question 1. Can the key values of the red black tree be repeated? Question 2. Must the red black tree have a key value?
There are many introductions about red and black trees on the Internet, and red and black trees are also widely used. Ask Du Niang. She will tell you all kinds of implementati ...
Posted by xylex on Fri, 17 Dec 2021 00:06:46 +0100
7-30 clear thinking of C + + problem solution of directory tree
Title Link
In the ZIP archive, the relative paths and names of all compressed files and directories are retained. When you open a ZIP archive using GUI software such as WinZIP, you can reconstruct the tree structure of the directory from this information. Please write a program to rebuild the tree structure of the directory.
Input format: ...
Posted by tarado on Thu, 16 Dec 2021 23:44:07 +0100
[PAT] Spring 2021 PAT Class A problems
1. Arithmetic Progression of Primes (20 points)
In mathematics, an arithmetic progression (AP, equal difference column) is a sequence of numbers such that the difference between the consecutive terms is constant. In 2004, Terence Tao and Ben Green proved that for any positive
n
...
Posted by ddoc on Thu, 16 Dec 2021 19:32:46 +0100
Interesting learning algorithm learning notes 1
Interesting learning algorithm learning notes
Question 0-1 calculate the number in reverse order
Problem description
This semester Amy began to study an important course - linear algebra. When she learned determinant, she thought it was A very disturbing thing every time she encountered calculating the inverse ordinal number of A given seque ...
Posted by peter11 on Thu, 16 Dec 2021 17:59:29 +0100
Analysis on binary search of array
Note: all the following contents are from personal superficial understanding of the use of binary search, for personal reference only! Don't spray if you don't like it. Welcome to correct it!
1, The situations suitable for binary search are divided into two categories:
1. Obvious conditions:
The array is ordered and clearly tells you that th ...
Posted by ted_chou12 on Thu, 16 Dec 2021 16:06:08 +0100
Algorithm learning 1-1 linked list learning pen
Linked list
Definition of linked list
n nodes are linked into a linked list, which is the linked storage structure of linear list. Because each node of this linked list contains only one pointer field, it is called single linked list.
1. Characteristics of linked list
Linked list is not suitable for fast positioning data, and is suitab ...
Posted by alluoshi on Thu, 16 Dec 2021 15:11:33 +0100
IIO subsystem in linux -- Analysis of IIO data structure 1
1, Kernel / include / Linux / IIO / IIO h 1.iio_dev structure
struct iio_dev {
int id;
struct module *driver_module;
int modes;//Indicates the different operating modes supported by the device
int currentmode;//Indicates the mode in which the device is actually used
struct device dev;//Represents the struct device on which th ...
Posted by Charles Wong on Thu, 16 Dec 2021 13:15:57 +0100
Tree -- 05 -- binary tree -- 01 -- binary search tree (BST) traversal
Binary tree (BST) basic traversal -- depth first
In many cases, we may need to traverse the tree like traversing an array, so as to take out each element stored in the tree. Because the tree structure is different from the linear structure, it cannot traverse backward from the beginning, so there is a problem of how to traverse, that is, ...
Posted by Thrakorzog on Thu, 16 Dec 2021 08:04:09 +0100