## Blue Bridge Cup AcWing learning notes 4-1 learning of enumeration (with relevant Blue Bridge real questions: concatenated interval number, increasing triplet, sum of special numbers) (Java)

Students who participate in the blue bridge cup can pay attention to the blogger. The blogger is also preparing the Blue Bridge Cup and can brush questions with the blogger's blog. Blue Bridge Cup My AcWing The title and pictures are from the counseling class of group ab of Blue Bridge Cup C + + enumeration Enumeration, as the name su ...

Posted by Elusid on Mon, 07 Mar 2022 09:10:43 +0100

## String correlation function

String correlation functions and methods Correlation functions: len, str, eval 1. Str (data) - convert the specified data into a string (when converting, put quotation marks directly outside the printed value of the data) str(100) #'100' str(True) #'True' list1 = [10,20,30] str(list1) #'[10, 20, 30]' 2. Eval (string) - evaluates th ...

Posted by richza on Mon, 07 Mar 2022 02:40:24 +0100

## C Language Programming Fifth Edition Tan Haoqiang's Postclass Answers Chapter VII Exercise Answers

1. Write two functions to find the maximum common divisor and the minimum common multiple of two integers respectively. Call the two functions with the main function and output the results. Two integers are entered by the keyboard. Interpretation: This topic mainly examines two kinds of knowledge: Rolling-and-rolling division: divide small va ...

Posted by therealchuckles on Sun, 06 Mar 2022 18:34:09 +0100

## Solutions to the 283 Weekly Match

This topic is not difficult, but there is still something to learn to write simple and elegant code. Topic 1 Force buckle   class Solution: def cellsInRange(self, s: str) -> List[str]: ans = [] a,b,c,d = s[0],s[1],s[3],s[4] for i in range(ord(a), ord(c)+1): for j in range(int(b),int(d)+1): ...

Posted by ShadowX on Sun, 06 Mar 2022 18:14:37 +0100

Reverse linked list There are two methods to reverse the linked list: iterative method and recursive method. Iterative method There are two ideas. One is to move the next node of the head node to the first one at a time until the head node becomes the last one; The second is to move the first node to the back of the tail node in turn until t ...

Posted by Chas267 on Sun, 06 Mar 2022 16:21:09 +0100

## Algorithm - maximum depth of tree binary tree

Title addressMy solution /** * 2ms 21.07 * 41M 33.17 * It's actually breadth first search * The entry point is to see layer by layer, and build the next layer according to the current layer. * */ public static int maxDepth(TreeNode root) { if (null == root) { return 0; } int de ...

Posted by tjmbc on Sun, 06 Mar 2022 15:56:23 +0100

## Learning algorithm idea I

Bank robbery days – 2100 – medium This problem uses the idea of prefix and For convenience, let nn be the length of securitysecurity. According to the definition of "days suitable for bank robbery" in the question, first of all, we can determine that the answer falls within the range of [time, n - time)[time,n − t ...

Posted by scheols on Sun, 06 Mar 2022 15:29:05 +0100

## Algorithm template By Roshin

memset also blocks time \((x\mod a) \mod ba = (x \mod ba )\mod a\) Find out how many numbers in \ (1 ~ n \) are multiples of \ (i \), that is \ (n / i \) Array non global variable to initialize Push more Learn to quote complex variables appropriately STL vector, Variable length array, multiplication idea size() Returns the number of eleme ...

Posted by Mightywayne on Sun, 06 Mar 2022 15:05:20 +0100

## 2022-03-06 swipe questions and punch in every day

2022-03-06 swipe questions and punch in every day Source code - div2 daily question Path count - topic - Daimayuan Online Judge There is an n × N grid, some grids are passable, and some grids are obstacles. At the beginning of your position in the upper left corner, you can go down or right every step and ask how many options there ar ...

Posted by mshen on Sun, 06 Mar 2022 13:37:26 +0100

## Bubble algorithm of C language, sorting data and library function, use and Simulation of qsort function

Bubble algorithm of C language, sorting data and library function, use and Simulation of qsort function Bubble algorithm for data sorting Article catalogue Bubble algorithm sorting integer arrayThe use of c language library function qsortAnalog implementation of qsort function 1, Bubble algorithm sorting integer data 1. ...

Posted by joe_C_nice on Sun, 06 Mar 2022 12:56:28 +0100