Learning notes: Chapter 10 internal sorting

Chapter X internal sorting Linear table operation Union of unordered linear tables: For example: A = (17, 55, 9, 30, 28) ​ B = (30,68,5,17) Time complexity O(LA*LB) Union of ordered linear tables: For example: A = (7, 15, 29, 38) ​ B = (3,7,46,57) Time complexity O(LA+LB) lookup Sequential lookup of unordered tables: O(n) ...

Posted by RazorICE on Tue, 21 Dec 2021 13:23:42 +0100

C language must recite 18 classic programs, and C language must recite 100 code books in 2022

1, C language must recite 18 classic programs, and C language beginners must know A beginner of C language how to learn code, read code and write code. I want to learn code. I don't know the direction. Who can point out a direction for me? For C language, there are not many things to remember. It is basically a few common statements and some k ...

Posted by zenag on Tue, 21 Dec 2021 07:53:43 +0100

Construction of esp8266 Linux subsystem (WSL)-VSCode compilation environment

Construction of esp8266 Linux subsystem (WSL)-VSCode compilation environment Install and configure wsl (I use Debian) Install wsl View system version cat /etc/os-release Switch software installation source (Tsinghua image is used here) https://mirrors.tuna.tsinghua.edu.cn/help/debian/ Edit source list sudo nano /etc/apt/source ...

Posted by Nymphetamine on Tue, 21 Dec 2021 06:27:14 +0100

Extremely simple aircraft war

Upper Code: #include<stdio.h> #include<stdlib.h> #include<conio.h> int main() { int i, j; int x = 0, y = 5,xy=5; char in; int is = 0,isk=0; while(1) { system("cls"); if (isk == 0){ for (j = 0; j < xy; j++) { printf(" "); } printf(" +\n"); } if (is == 0) { for (i = 0; i < x; i++) { p ...

Posted by Stunt on Mon, 20 Dec 2021 14:38:38 +0100

1 memory partition model

During the execution of C + + program, the general direction of memory is divided into four areas Code area: it stores the binary code of the function body and is managed by the operating systemGlobal area: stores global variables, static variables and constantsStack area: automatically allocated and released by the compiler to store function ...

Posted by xardas on Mon, 20 Dec 2021 14:06:36 +0100

Basic data structure: P2 5 - application example -- > polynomial multiplication and addition - C implementation

This series of articles is the study notes of data structure of Chen Yue and he Qinming of Zhejiang University. The links of the previous series of articles are as follows: Fundamentals of data structure: P1 - Basic Concepts Basic data structure: P2 1 - linear structure - > linear table Basic data structure: P2 2-linear structure - > stac ...

Posted by halex on Mon, 20 Dec 2021 11:55:35 +0100

Fibonacci sequence

1, Recursion It is known that the Fibonacci sequence Fn = Fn − 1 + Fn − 2 (n > = 3), F1 = 1,F2 = 1. The nth term of the sequence is solved recursively. Input format: Enter a positive integer n (1 < = n < = 40). Output format: Output a number, the nth item of the sequence Input example 1: 1 No blank lines a ...

Posted by rob.weaver on Mon, 20 Dec 2021 10:01:54 +0100

Tingzi (Chess pieces can be removed (removed)

Design Title: Introduction to Tingzi Game Design and Implementation: A tandem game in Tingzi grid in which two players representing O and X alternately fall in the grid. Any three players form a straight line to win. Today, Xiao Ming invented a new game: 1) The size of the chessboard 3x3, the winning conditions remain unchanged; (2) If a part ...

Posted by grenouille on Mon, 20 Dec 2021 01:03:01 +0100

C language programming - structure (Part II)

C language programming - sorting notes of structure. If there are errors, please correct them. C language programming - structure (Part I) Structure array A set of associated data (such as a student's student number, name, grade, etc.) can be stored in a structural variable. If the data of 10 students need to participate in the operation, it ...

Posted by maniac1aw on Sun, 19 Dec 2021 14:24:14 +0100

This paper deeply analyzes how the dynamic memory of Hongmeng light kernel M core supports multi segment discontinuous memory

Abstract: the M core of Hongmeng light kernel newly supports multi segment discontinuous memory areas, which logically integrates multiple discontinuous memory, and users do not perceive different memory blocks at the bottom. This article is shared from Huawei cloud community< Hongmeng light kernel M core source code analysis series 9 Dyna ...

Posted by landavia on Sun, 19 Dec 2021 13:28:02 +0100