LeetCode 235. The nearest common ancestor of binary search tree
My LeetCode: https://leetcode-cn.com/u/ituring/
My LeetCode source code [GitHub]: https://github.com/izhoujie/Algorithmcii
LeetCode 235. The nearest common ancestor of binary search tree
subject
Given a binary search tree, the nearest common ancestor of two specified nodes in the tree is found.
The definition of the nearest common ancestor in ...
Posted by bogdan on Wed, 13 May 2020 08:01:37 +0200
C# Log4Net Learning Notes: Log to File
1. Basic knowledge
1.1. Introduction
Log4Net is an open source logging framework that is powerful enough to classify logs into different levels and output them to different storage media in different formats, such as databases, txt files, memory buffers, mail, consoles, ANSI terminals, remote receivers, and so on.
Log4Net divides logs into five ...
Posted by shane85 on Mon, 11 May 2020 18:40:47 +0200
A new feature of JDK 14: switch expression
brief introduction
The new feature of switch has a long history. It was introduced as a preview function as early as JDK 12, and finally became an official version of the function in JDK 14: JEP 361: Switch Expressions (Standard).
In fact, there are two new functions of switch, one is that case can be linked, the other is that switch can bring ...
Posted by DaRkZeAlOt on Sat, 09 May 2020 01:02:44 +0200
LeetCode 297. Serialization and deserialization of binary tree
My LeetCode: https://leetcode-cn.com/u/ituring/
My LeetCode source code [GitHub]: https://github.com/izhoujie/Algorithmcii
LeetCode 297. Serialization and deserialization of binary tree
subject
Serialization is the operation of converting a data structure or object into continuous bits, and then the transformed data can be stored in a file or ...
Posted by baccarak on Fri, 08 May 2020 14:56:28 +0200
[SpringBoot Basic Series] Implement a custom configuration loader (application)
[SpringBoot Basic Series] Implement a custom configuration loader (application)
The @Value annotation is provided in Spring to bind configurations so that they can be read from the configuration file and assigned to member variables; sometimes, our configurations may not be in the configuration file, if they existDb/redis/other files/third-p ...
Posted by McManCSU on Thu, 07 May 2020 04:00:28 +0200
RxJava2 for andorid jar/library source parsing
Catalog: andorid jar/library source code parsing
RxJava2:
Role:
Optimize logical processes by providing an architecture that provides a model for observers and subscribers.Suitable for complex and multi-data conversion and long processes.
Chestnuts:
Define three object classes
public class ResultInfo {
public int code;
public String ...
Posted by qteks200 on Wed, 06 May 2020 00:37:28 +0200
V-LOAM source code analysis
For reprint, please indicate the source: This article is from zhch Pan's blog http://www.cnblogs.com/zhchp-blog/
This blog is the source code reading work I did before when I did the project. po went to the Internet to help others better understand the V-LOAM project implementation. Some local codes have been modified, which may be differen ...
Posted by designrandom on Tue, 05 May 2020 23:35:31 +0200
golang validates the data format of struct field
Suppose we have the following structure:
type User struct {
Id int
Name string
Bio string
Email string
}
We need to verify the validity of the fields in the structure:
· the value of Id is in a range.
· the length of Name is in the range of none.
· Email format is correct.
We might writ ...
Posted by brent123456 on Mon, 04 May 2020 08:10:43 +0200
Hybrid App knowledge point collection
Native Webview knowledge:
1: Registration related authority
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
2:webview common methods
goBack() //Back off
go ...
Posted by MorganM on Mon, 04 May 2020 01:33:41 +0200
45 Three.js extrude geometry
brief introduction
The. Tubegeeometry stretches a tube along a 3D style curve (the. Catmullromcurve3 object).
Simplest implementation
var tubeGeometry = new THREE.TubeGeometry(path,segments,radius,radiusSegments,closed);
Description of relevant parameters
attribute
Required or not
describe
path
yes
This property specifies t ...
Posted by battlesiege on Sun, 03 May 2020 22:49:51 +0200