LeetCode Title Note_20210925

1.About the api member functions for several containers in the STL: 1.1 stack: stack s; s.empty(); s.size(); s.top(); s.push(n); s.pop(); 1.2 queue: queue q; q.empty(); q.size(); q.font(); q.back(); q.push(); q.pop(); The difference between stack and queue is that: Stack can only acceUTF-8...

Posted by mkoga on Sat, 25 Sep 2021 21:50:21 +0530

[LeetCode 354] Russian doll envelope problem--C++ solution

LeetCode Origin: You are given a two-dimensional array of integers, envelopes[i] = [wi, hi], representing the width and height of the ith envelope. When another envelope is larger in width and height than this one, it can be put into another envelope, just like a Russian doll. Please calculateUTF-8...

Posted by john_bboy7 on Sat, 25 Sep 2021 21:59:12 +0530

Extra detailed advanced C tutorial! Dynamic memory management

Author's code cloud address:https://gitee.com/dongtiao-xiewei Subsequent authors will update their daily series of titles, the original code will all upload code cloud, recommended attention oh, pen core~ More in-depth understanding of the c language? Subscribe to the author's advanced c languaUTF-8...

Posted by nitediver on Sat, 25 Sep 2021 22:19:34 +0530

Sichuan Selected Topic: National Flag Program (corresponding to Luogu P4155)

SCOI Flag 2015 Program describe State A is carrying out a great program, the Flag Program. This program is about border fighters raising their flags around the border line. This program requires multiple border fighters to join forces in a relay. For this reason, the Homeland Security Bureau haUTF-8...

Posted by vincente on Sat, 25 Sep 2021 22:25:21 +0530

C++ | C + + multithreaded programming

C++ | C + + multithreaded programming C + + multithreading Multithreading is a special form of multitasking, which allows the computer to run two or more programs at the same time. Generally, there are two types of multitasking: process based and thread based. Process based multitasking is the UTF-8...

Posted by overlordofevil on Sun, 26 Sep 2021 00:19:52 +0530

c + + programming video learning (day 5)

4.1.3 switch statement Function: execute multi conditional branch statements Syntax: switch (expression) case result 1: execute the statement; break; case result 2: execute the statement; break; case result 3: execute the statement; break; ... defalt: execute statement; break; #include

Posted by KC8Alen on Sun, 26 Sep 2021 10:18:28 +0530

Summary of week 2021-09-26:

1, Title 1. Los Angeles Valley: P1255 number of stairs Title Description Stairs have NN Step, you can go upstairs one step at a time, or you can go upstairs two steps at a time. Compile a program to calculate how many different walking methods there are. Input format One number, the number of sUTF-8...

Posted by phpanon on Sun, 26 Sep 2021 16:22:26 +0530

[C++]04_ Initial stage of formwork

[C++]04_ Initial stage of formwork 01. Generic programming and templates 1.1 generic programming How to implement a general exchange function? void Swap(int& left, int& right) { int temp = left; left = right; right = temp; } void Swap(double& left, double& right) { double temp = left; left = riUTF-8...

Posted by parka on Sun, 26 Sep 2021 16:57:51 +0530

c Language String Operation

(Header file is required for all of the following operations) ok let`s go! Part 1. Find the length of the string strlen const indicates that you cannot modify what the pointer is pointing to. 6 (found\0) ps. Make your own strlen using a function! (Below) ​ #include unsigned UTF-8...

Posted by tsigo on Sun, 26 Sep 2021 22:07:41 +0530

C language fgetc and fputc function usage details

When reading and writing a file as characters, you can read one character from the file or write one character to the file at a time. Two functions are mainly used: fgetc() and fputc(). Character reading function fgetc Fgetc is the abbreviation of file get char, which means to read a characterUTF-8...

Posted by vaanil on Sun, 26 Sep 2021 23:30:56 +0530