Chapter II Data Structure Monotonic Stack and Monotonic Queue
1. Algorithmic ideas
The core idea of these two algorithms is: Only those elements that conform to a certain monotonicity are likely to be the answer. Screen out those elements that do not conform to a monotonicity according to the title requirements, store those elements that conform to a certain monotonicity in the stack or queue, and obtain ...
Posted by Trey395 on Tue, 21 Sep 2021 09:40:12 -0700
VS code C/C + + environment configuration (the first step for novices)
When I started to review the C language recently, I thought of getting a hand-in-hand development tool. I remembered my painful experience of installing Visual Studio and decided to choose a lighter VS code. However, after downloading the VS code, it can not be used directly. I need to configure the environment. Here is my personal method for c ...
Posted by Lucnet on Tue, 21 Sep 2021 00:44:58 -0700
❤️ Graphic C language, structure alignment, nanny level teaching, suggestions collection ❤️
catalogue
1, Alignment rules for structures
2, Acquiescence
3, Example explanation
1. Example 1
2. Example 2
3. Example 3
4. Example 4
4, Why is there memory alignment?
5, Modify the default number of alignments
6, Summary
1, Alignment rules for structures
1. The first member of the structure is alway ...
Posted by basim on Mon, 20 Sep 2021 22:30:56 -0700
✨✨✨ [C language] take you to brush questions in the shortest time (with problem-solving ideas and specific codes) and constantly update them ✨✨✨
🐷🐷🐷🐷🐷🐷🐷🐷🐷🐷🐷🐷🐷🐷🐷🐷🐷🐷🐷🐷🐷🐷🐷
🐷🐷🐷🐷🐷🐷🐷🐷🐷🐷🐷🐷🐷🐷🐷🐷🐷🐷🐷🐷🐷🐷🐷
💚 BC41. Are you a genius
Description:
It is said that people with an IQ above 140 are called geniuses, KiKi If you want to know if he is a genius, please help him judge by programming. Enter an integer to indicate a person's IQ. If it is gre ...
Posted by Garcia on Mon, 20 Sep 2021 21:16:22 -0700
iOS underlying principle 28: LLVM compilation process and Clang plug-in development
This paper mainly understands the compilation process of LLVM and the development of clang plug-in
LLVM
LLVM is a framework system of architecture compiler, which is written in C + +. It is used to optimize the compile time, link time, run time and idle time of programs written in any programming language. Remain open to developers and com ...
Posted by direction on Mon, 20 Sep 2021 03:04:54 -0700
File descriptor correlation function summary dup2 dup
1. What is a file descriptor?
1. Nonnegative integer. 2. Represents an open file. 3. Returned by the system call (open) and referenced by the kernel ...
Posted by gregghealy on Mon, 20 Sep 2021 00:21:12 -0700
Basic concepts of data structure (C)
1 data structure concept
1.1 origin of data structure
Computer from solving numerical problems to solving problems in life Problems in real life involve complex connections between different individuals It is necessary to describe the connections between individuals in life in computer programs Data structure mainly studies the operatio ...
Posted by powah on Sun, 19 Sep 2021 22:35:44 -0700
C language: library function simulation
preface
We know that there are many library functions in C language, which play a very important role in our programming. Let's write several common library functions to further understand their internal working principle.
Common library functions
String function
strlen
The string length function is a function we often use. It will not ...
Posted by bibby on Sun, 19 Sep 2021 19:53:09 -0700
Variable array and linked list
Variable array and linked list
1, Variable array
1. Realization
define a data structure array, which contains an integer pointer array and a size used to indicate the length of the current array.
a. Header file
def.h
#ifndef _ARRAY_H_
#define _ARRAY_H_
#define BLOCK_SIZE 10
typedef struct{
int *array;
int size ...
Posted by SystemWisdom on Sun, 19 Sep 2021 17:38:15 -0700
C language to achieve three chess game
preface
This is my first blog as a C language beginner and a freshman. After a short period of study before that, I successfully wrote a simple Sanzi game. If there is anything to be corrected, I hope you can criticize and correct.
thinking
I plan to implement the code of the whole game in two source files. The first source file test.c is u ...
Posted by catnip_uk on Sun, 19 Sep 2021 08:00:29 -0700