Data structure - sequential stack [c language version]

A stack is a linear table that can only be inserted or deleted at one end. (linear table with limited operation)          The stack can only insert or delete elements at the end of the table. The end of the table is the top of the stack, and the header is the bottom of the stack Main features of stack: ...

Posted by stephenf33 on Sat, 20 Nov 2021 18:11:39 -0800

[C language] review of linked list questions of LeetCode

preface Because the freshman learned the linked list hastily and did very little about some algorithm problems of the linked list, the basic knowledge of the linked list tree graph became worse and worse during the last semester of sophomore year, let alone the algorithm problems of tree and graph. So after finishing a project in the direc ...

Posted by sfx81 on Sat, 20 Nov 2021 17:27:53 -0800

The fourth chapter is the summary of branch structure programming

4.1 cited examples [example 4.1] input the three sides of the triangle to judge whether it can form a triangle. If so, calculate and output the area of the triangle, otherwise an error prompt will be given. #include<stdio.h> #include<math.h> int main() { int a, b, c; float area; double s; printf("Please enter the three sides o ...

Posted by dar-k on Sat, 20 Nov 2021 17:08:18 -0800

Detailed explanation of ac automata (multi-mode string matching with mismatch pointer)

ac automata is an algorithm used to calculate multiple string matches. As we know, K M P KMP KMP realizes the matching of single-mode strings in an ingenious way (using a single string to ask whether the string appears ...

Posted by Hopps on Sat, 20 Nov 2021 14:12:33 -0800

C language library function instructions (including operators)

​ preface: 1. When any character is stored, its ascii code value (integer int type) is stored in memory. 2. Write the function according to the document 3. Library function, user-defined function (with function name, return value type and function parameters) 1.getchar, putchar function Example 1: int main() { int ch = getchar(); pu ...

Posted by Marijnn on Sat, 20 Nov 2021 05:04:09 -0800

Detailed explanation of structure

Today, let's talk about structure Why structure Because in practical problems, a group of data often has many different data types. For example, to register student information, you may need to use char type name, int type or char type student number, int type age, char type gender, and float type grade. For another example, for recording ...

Posted by gethinw on Fri, 19 Nov 2021 23:13:09 -0800

The algorithm inserts sorting Dongtian and Hill sorting cycle into small code farmers

sort The concept and application of sorting Sorting concept ==Sorting: = = the so-called sorting is the operation of arranging a string of records incrementally or decrementally according to the size of one or some keywords. ==Stability: = = if there are multiple records with the same keyword in the record sequence to be sorted, th ...

Posted by sseeley on Fri, 19 Nov 2021 23:00:47 -0800

Introduction to c language helloworld under ubuntu system and writing simple programs

1, Introduction to c language helloworld 1. Open the terminal under ubuntu system 2. Find the appropriate location and create a new folder helloworld. mkdir helloworld 3. Open the helloworld folder cd helloworld As shown in the figure 4. Create and open a c language file named hello.c with vim vi hello.c 5. Enter the following ...

Posted by KashKurcura on Fri, 19 Nov 2021 20:13:48 -0800

Data structure - linear table concept and basic operation

data structure Basic concept and operation of linear table (I) Mind map 2.1 definition and basic operation of linear table 2.1.1 definitions A linear table is a finite sequence of n (n ≥ 0) data elements with the same data type, where n is the table length. When n = 0, the linear table is an empty table. If L is used to name t ...

Posted by Dax on Fri, 19 Nov 2021 14:47:57 -0800

[C language] an easy-to-use circular queue and use example (AT framework taking EC200/600 as an example)

1. Preface Previous: https://blog.csdn.net/ylc0919/article/details/111050124 It's been ten months since I said I would send the second generation framework. It's hard to have time to summarize the harvest during this period. After writing the first generation AT queue, I have many ideas. For example, can one AT queue manage multiple AT mod ...

Posted by webtailor on Fri, 19 Nov 2021 12:14:48 -0800