Weekly leetcode - 235/236/53/NC102/NC103

leetcode - 235. Nearest common ancestor of binary search tree Given a binary search tree, find the nearest common ancestor of two specified nodes in the tree. Baidu Encyclopedia defines the nearest public ancestor as: "for two nodes p and q with root tree T, the nearest public ancestor is expressed as a node x, which satisfies that x ...

Posted by peeter_talvistu on Sat, 20 Nov 2021 20:16:00 -0800

C language Tan Haoqiang topic - Chapter 5

Chapter V EG 4 Among the 1000 students in the Department, collecting charitable donations will end when the total amount reaches 100000 yuan. Count the number of donations at this time and the average number of donations per person. Problem solving idea: obviously, it should be handled by circulation. The actual number of cycles canno ...

Posted by blindtoad on Sat, 20 Nov 2021 20:08:23 -0800

[data structure] circular snake? Leading bidirectional circular linked list of linked list

catalogue 1. Summary 2. Introduction of two-way circular linked list     2.1. Bidirectional linked list     2.2. Circular linked list     2.3. Two way circular linked list 3. Code implementation     3.1. Header file     3.2. Interface documents     3.3. Test documents 4. References 1. Summary This paper mainly introduces the concept of two ...

Posted by Svoboda on Sat, 20 Nov 2021 19:58:03 -0800

Definition and use of [python foundation] class

1. Definition and use of class Class: used to describe a collection of objects with the same properties and methods. It defines the properties and methods common to each object in the collection. An object is an instance of a class.Class variable (class attribute): class variable is common in the whole instantiated object. Class variabl ...

Posted by soldbychris on Sat, 20 Nov 2021 19:54:25 -0800

JavaBean and EL expressions

Learning objectives 1: JavaBean 2: EL expression Learning content 1: Initial JavaBean 1,1 what is a JavaBean JavaBean is a reusable software component in java development language. Its essence is a Java class. In order to standardize the development of JavaBeans, Sun company released the JavaBean specification, which requires a standard JavaB ...

Posted by kday on Sat, 20 Nov 2021 19:52:46 -0800

01-springCloud easy start

Eureka registry Eureka is like Didi, responsible for managing and recording the information of service providers. Service callers do not need to find services themselves, but tell Eureka their needs, and Eureka will tell you the services that meet your needs. At the same time, the service provider and Eureka are monitored through the "hea ...

Posted by sbacelic on Sat, 20 Nov 2021 19:46:05 -0800

[elasticsearch] learning notes -p8 (realize data synchronization between elasticsearch and mysql)

Video directions 👉 Station B dark horse micro service Super recommended! MQ implements data synchronization between elasticsearch and mysql The hotel data in elasticsearch comes from MySQL database. Therefore, when MySQL data changes, elasticsearch must also change. This is the data synchronization between elasticsearch and mysql. 1. ...

Posted by n5tkn on Sat, 20 Nov 2021 19:39:56 -0800

199. Right view of binary tree

/** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode() : val(0), left(nullptr), right(nullptr) {} * TreeNode(int x) : val(x), left(nullptr), right(nullptr) {} * TreeNode(int x, TreeNode *left, TreeNode *right) : val(x), left(left), right(right) {} ...

Posted by sxiix on Sat, 20 Nov 2021 19:28:59 -0800

Analysis of ijkplayer video decoding and playing process

ijkplayer is a cross platform player that supports Android and iOS playback. OpenGL ES is used for video rendering. mediacodec can be used for Android video decoding, while VideoToolbox can be used for iOS video decoding. The soft solution part uses the avcodec of FFmpeg. 1, iOS video decoding and playback The video decoder is created in the fo ...

Posted by Fira on Sat, 20 Nov 2021 19:15:46 -0800

chrony time synchronization service

brief introduction NTP is the network time protocol, which is used to synchronize the time of each computer in the network. NTP and chrony cannot exist at the same time. You can only use one of them and remove the other mask Chrony is an open source free software, which can help you keep the system clock synchronized with the clock server (NTP ...

Posted by martinco on Sat, 20 Nov 2021 18:53:56 -0800