Introduction to color screen display: color setting and text display | ESP32 learning tour - Arduino version

Contents of this series of historical articles: ESP32 overview and Arduino software preparation Introduction to the programming of ESP32 GPIO interface Bluetooth pager (PPT controller) Novel coronavirus pneumonia epidemic data real-time display Fan counter of station B Siri voice recognition control LED Getting sensor data from Siri speech rec ...

Posted by PhilVaz on Mon, 22 Jun 2020 06:19:44 +0200

c++ Smart Pointer Learning and Use

Original:https://www.fluentcpp.com/2018/12/25/free-ebook-smart-pointers/ One thing that quickly confuses your c++ code and hinders its readability is memory management.If you don't do it well, this can turn a simple logic into an inexpressive chaotic management and leave your code out of control of memo ...

Posted by lightningstrike on Mon, 22 Jun 2020 02:58:39 +0200

Python tips you may not know

Note: the following tips are based on Python 3 Exchange variable value a, b = 1, 2 print("Assignment:", a, b) # Exchange variable value a, b = b, a print("Exchange:", a, b) Assignment: 1 2 Exchange: 2 1 Chain comparison a = 5 print(1 < a < 10) print(5 < a < 10) True False String ...

Posted by tazgalsinh on Sat, 20 Jun 2020 10:42:18 +0200

[LeetCode] 297. Serialization and deserialization of binary tree

subject Link:https://leetcode-cn.com/problems/serialize-and-deserialize-binary-tree/ Problem Description: analysis Method 1: DFS (recursive) Recursion can be understood as: transferring responsibility Recurse a tree and only focus on the current single node Leave the rest to recursion "Se ...

Posted by spudly on Sat, 20 Jun 2020 09:23:08 +0200

[array and string] Introduction to 2D array

catalog 2, Introduction to 2D array 2.1 rotation matrix 2.2 zero matrix 2.3 diagonal traversal ☆ 2, Introduction to 2D array 2.1 rotation matrix 2.1.1 problem description 2.1.2 solution process Method 1: no additional space is allowed, so you can only operate in place. In other w ...

Posted by poelinca on Fri, 19 Jun 2020 13:33:37 +0200

C language examination on computer operation question bank (basic) (Reference)

Here are the possible code problems (Fundamentals) in the C language test: (if you like it, please share it with your friends! Thank you 1. Find the total number of numbers between 300-800 that can be divided by 3 or 5. # include <stdio.h> int main() { int i, s = 0; for (i=300;i<=800;i++) { ...

Posted by davidguz on Thu, 18 Jun 2020 08:23:53 +0200

Company real question brush record Python

Article catalog Greedy Algorithm Dictionary order Huawei test vivo advance approval Sort + two pointer search to flash back Greedy Algorithm Resource allocation, maximizing revenue Xiaoq's company recently received m tasks, the i task needs xi time to complete, and the difficulty level is yi. ...

Posted by myharshdesigner on Thu, 18 Jun 2020 06:28:06 +0200

How to write Vue next response? Detailed explanation of this article

preface 1. This paper will write a response principle in Vue next from scratch. Due to the difficulty of space and understanding, we will only implement the core api and ignore some boundary function points The APIs to be implemented in this article include track trigger effect reactive watch computed2. Recently, many people asked me about th ...

Posted by sorenchr on Thu, 18 Jun 2020 06:06:20 +0200

python learning summary day8 tuples, dictionaries, sets

python learning summary day8 tuples, dictionaries, sets 1, Tuple 1. Tuple: a tuple is an immutable list and a container type of data. It does not support addition, deletion and modification, but only supports query (subscript operation). 1) Empty tuple: () - > tuple 2) Tuple of single element ...

Posted by NightCoder on Thu, 18 Jun 2020 04:29:39 +0200

Beginner level chapter nine violent recursion

The introduction course of algorithm of Zuo Chengyun, teacher of niuke.com Violent recursion principle Hanoi Tower problem problem Print the process of the n-layer Hanoi tower moving from the left to the far right thought There are six processes, left to right, left to middle, middle to lef ...

Posted by simon71 on Tue, 16 Jun 2020 07:03:14 +0200