Detailed explanation and application of merging and sorting

After reading this article, you can not only learn the algorithm routine, but also win the following topics on LeetCode:912. Sort array (medium)315. Calculate the number of elements on the right that are smaller than the current element (difficult)-----------Many readers have always said that they want me to use it Frame thinking To talk about ...

Added by dr_freak on Sun, 27 Feb 2022 16:05:22 +0200

leetcode DFS+BFS+DSU question brushing summary 2

leetcode DFS+BFS+DSU question brushing summary 2 1-symmetric binary tree Title Link: Link here!!! Idea 1: iterative method For a binary tree, the left and right subtrees enter the queue respectively. If the left and right subtrees are empty, the traversal ends. If only one of the left and right subtrees is empty, or the root nodes of the left ...

Added by xlordt on Sun, 27 Feb 2022 15:58:15 +0200

linux Basics

1. Signal Signals are software interrupts that provide a way to handle asynchronous events The simplest interface of unix signaling mechanism is the signal function /* * sign Signal integer * func Function pointer * return : Function pointer (a function address, function has an integer parameter, no return value) */ void (* signal(int ...

Added by egorig on Sun, 27 Feb 2022 15:38:00 +0200

day 8 course summary

day 8 course summary String related functions: len, str, eval Str (data) converts the specified data into a string (put quotation marks directly outside the printed value of the data) eval (string) evaluates the result of a string expression str1 = '[10, 20, 30]' result = eval(str1) print(result) result.append(100) print(res ...

Added by blueman on Sun, 27 Feb 2022 15:36:32 +0200

Linux - directory structure

Reprint and: Linux system directory structure | rookie tutorial The file directory structure is a tree structure starting from '/'! FHS (File System Hierarchy Standard); 1, Four interactive forms of directory Shareable, which can be shared to the directory used by other systems;unshared, device files running on your own mac ...

Added by sportryd on Sun, 27 Feb 2022 15:17:14 +0200

MVVM mode in Vue

preface    in the context of rapid iteration of Internet products, front-end developers should not only write pages, but also complete page dynamic effects through ajax+js. There is great pressure. In order to solve this problem, MVVM development mode was born. MVVM is short for model view view model -M: Model refers to data -V: Vie ...

Added by gyash on Sun, 27 Feb 2022 15:15:21 +0200

SD card reading and writing experiment

More exchanges, welcome tiktok, 81849645041 objective Familiar with the working principle of SD card and SDIO. Master the reading and writing of SD card. principle Most single chip microcomputer systems need large capacity storage devices to store data. At present, U disk, FLASH chip, SD card and so on are commonly used. They have their own ...

Added by Zoran_Dimov on Sun, 27 Feb 2022 14:48:24 +0200

String function

String function 1.capitalize character string. capitalize () - change the first letter of the string to uppercase and the other letters to lowercase str = "this is string example from runoob....wow!!!" str.capitalize() center() - returns a string centered on the specified width, fillchar is the filled character, and the default is space. ...

Added by Cronje on Sun, 27 Feb 2022 14:19:24 +0200

Socket programming of network programming

But to make the Dragon City Flying generals, only because they are in this mountain Before Introduction to BIO and NIO (Netty leader) In this article, we talked about socket. This article wants to broaden our horizons and talk about socket from the perspective of computer network Review the old and know the new, and talk about the network mod ...

Added by inutero on Sun, 27 Feb 2022 13:57:40 +0200

webpack usage process

webpack workflow? webpack overview webpack is a popular front-end project construction tool (packaging tool), which provides functions such as code compression confusion, js compatibility, performance optimization and so on, so that programmers can focus on the specific function implementation. webpack usage process First, you need to in ...

Added by BioBob on Sun, 27 Feb 2022 13:52:26 +0200