Time complexity and space complexity (data structure implemented in C language)

preface           Woo woo woo, the C language blog has been delayed for too long and has lost itself; Now I have to learn data structure again. If you have time to write a blog in C language! The data structure must be constantly! Well, sure, come on, Ollie!!!!!! 1, Data structure Preface     1. What is ...

Posted by nelsok on Fri, 15 Oct 2021 13:22:21 -0700

Educational Codeforces Round 115 (Rated for Div. 2)

Introduction daily Knowledge points involved Sequencing, thinking Link: Educational Codeforces Round 115 (Rated for Div. 2) subject A Computer Game Give a 2 × N matrix, each position is only 0 or 1,1 unreachable, 0 reachable. Now start from (1,1) and move forward to the adjacent reachable positions each time (in addition to edg ...

Posted by uberpolak on Fri, 15 Oct 2021 12:22:04 -0700

Implementation of data structure in C language -- chain queue

definition We learned the data structure of stack earlier. We know that it is characterized by data in first and data out later. In contrast to the stack, queues are characterized by data first in first out. That is, first in firstr out, referred to as FIFO. The queue only allows data insertion at one end of the table and data deletion at the ...

Posted by sheriff on Fri, 15 Oct 2021 01:01:33 -0700

Sequence table operation

What is a sequence table Order represents the sequential storage structure of linear table, that is, the storage structure of linear table constructed in sequential storage mode. For the sequential table a with n elements, it can be expressed as A[0... N-1], with subscripts from 0 to n-1. A[0] is called the first element, A[1] is called th ...

Posted by gudfry on Thu, 14 Oct 2021 13:39:24 -0700

[C language] interpretation of ten thousand words -- about the reading and writing function of files

preface: In c language, we usually destroy it after running, so the running results cannot be retained, but we can also make an organic association between c language and files, that is, various functions for files. Tip: the following function definitions and parameters can be found on the cpulspouls website. The links are as follows: Click ...

Posted by liro on Thu, 14 Oct 2021 13:26:56 -0700

Binary Sum, Detailed Analysis + Two Ideas + Summary of Knowledge Points

Binary Sum 🔥🔥A special column was opened to record LeedCode topics, summarize ideas, analyze topics, summarize knowledge points, practice makes perfect! Welcome to collection! 1. Title Give you two binary strings and return their sum (in binary). The input is a non-empty string and contains only the numbers 1 and 0. Example 1: in ...

Posted by awais_ciit on Thu, 14 Oct 2021 10:28:57 -0700

C language -- consortium and structure

structural morphology Structure: a structure is a collection of values called member variables. Each member of the structure can be a different type of variable. Declaration of structure struct Student { char name[20]; //full name char sex[2]; //Gender int age; //Age char colleage[20]; //school char clazz[20]; //class }; Definition a ...

Posted by scottreid1974 on Thu, 14 Oct 2021 10:03:03 -0700

C language learning review

This is a review of the C language online course in station B The learning contents are simple circular statements and three algorithm problems of while and for First, list the three exercises directly: 1. Find a number in an ordered array; 2. Write code to demonstrate that multiple characters move from both ends and converge to the middle ...

Posted by Immortal55 on Thu, 14 Oct 2021 01:04:20 -0700

POJ topic training, initial stage and basic algorithm

Introduction There's nothing to say. It's done. Feudal superstition belongs to yes Knowledge points involved Enumeration, violence, construction, simulation subject 1753 Main idea of the title: omitted Idea: I've done it before. The basic idea is search, but bitset should be used to optimize storage code #include <iostream> # ...

Posted by able on Wed, 13 Oct 2021 20:54:50 -0700

Mixed programming of C language and assembly language in STM32 under Keil

1, Introduction C language is intuitive, easy to use, widely applicable, efficient assembly language and less memory. The combination of the two is the best choice 2, Example Title Requirements Refer to the attachment to complete the C language call assembly functionModify the reference code and require the original assembly language ...

Posted by *Lynette on Wed, 13 Oct 2021 16:04:01 -0700