Neutral Tonality-CF1894D Translation Given a n n Array of n integers a a a, and a m m An array of m integers b b b. LIS ( c ) \text{LIS}(c) LIS(c) represents an array c c The length of the longest increasing subsequence of c. For example, LIS ( [ 2 , 1  ̄ […]
Tag: thin
iOS in-app packet capture, NSURLProtocol intercepts network requests within APP
Foreword When developing, you need to obtain data in the SDK. Since you cannot see the code, you can only monitor all network request data and intercept the corresponding return data. This can be achieved through NSURLProtocol, and can also be used to interact with H5. 1. NSURLProtocol intercepts requests 1. Introduction to NSURLProtoco Official […]
Codeforces Round 908 (Div. 2) (A~E) (all thinking questions)
1894A – Secret Sport Question meaning: A and B are playing a gambling game. One of the games is divided into X small games. After winning Y big games, the final victory is achieved and the game ends (X, Y are unknown). Given a sequence containing only the letters A and B, it represents A […]
Educational Codeforces Round 139 1766D- Lucky Chains(div2-Thinking/Euler Sieve/GCD)
Problem link: https://codeforces.com/problemset/problem/1766/D Question: If a number is correct ( x , y ) (x,y) (x,y) is lucky if and only if g c d ( x , y ) = 1 gcd(x,y)=1 gcd(x,y)=1, a chain can be composed of the following regular number pairs, ( x , y ) , ( x + 1 […]
What modules in python do you think are awesome?
When doing data analysis before, I used a Python library that automatically generates data exploration reports: ydata_profiling Generally, we will conduct data exploration before doing data processing, including looking at statistical distributions, visual charts, data quality, etc. This process will consume a lot of time and may require hundreds of lines of code to implement. […]
Strange things encountered in side missions – concurrent requests
Concurrent requests refer to the situation where one or more requests are always sent out at the same time. It does not mean that these requests are sent exactly at the same time, but within a period of time, these requests may be sent one after another due to small differences in time. These requests […]
Timing flash and PWM breathing light based on STM32 standard library
PWM breathing light based on STM32 standard library Article directory PWM breathing light based on STM32 standard library 1. Introduction to STM32 timing function 2. Introduction to PWM functions 3. Create project 4. Realization of LED flashing and extinguishing regularly 4.1 Code ideas 4.2 Configuration code 4.3 Burning results 5. PWM configuration function analysis 5.1 […]
Convolutional Neural Network-Clothing Image Classification
Introduction: The code for this tutorial uses a neural network to train an image classification machine learning model that can classify handwritten digits 0-9. It does this by creating a neural network. The neural network takes as input the pixel values of a “28 pixel x 28 pixel” image and outputs a list of 10 […]
Python’s 5 super practical skills, there are definitely things you can’t think of!
Article directory Preface 1. Dictionary comprehensions and Set comprehensions 2. Use Counter counting object when counting 3. Beautifully print out JSON 4. Create small, one-off, fast web services 5. Python’s amazing open source community About Python technical reserves 1. Learning routes in all directions of Python 2. Python basic learning video 3. Excellent Python learning […]
Breathing light (pwm) based on STM32
Directory 1. Principle 1. STM32 timer principle 2. PWM on STM32 2. CubeMX configuration project (breathing light) 1. Set up RCC 2. Configure SYS 3. Configure timer 4. Generate project files 3. Keil (breathing light) 1. Observe PWM waveform with Keil virtual oscilloscope 2.main.c 4. Breathing light and PWM output signal 1. HAL library modification […]