less. Page 6

After two or more threads finish executing, continue to perform the following steps, CountDownLatch and CyclicBarrier

In the development process, there will be more or less one method that needs to wait for the execution results of two or more threads. How do we deal ...
1:46 4 December 2019

Python basic exercises

1. Number of printing 1-100 for i in range(1, 101): print(i) 2. Print the sum of 1 + 2 +.. 100 num = 1 sum = 0 while num < 101: sum += num num += 1...
0:08 4 December 2019

[tree cover] [learning notes]

thought Tree cover tree, like his name, is a tree cover another tree. Use an outer tree to maintain something like intervals. Then each node of the ou...
19:44 3 December 2019

FFmpeg code to extract audio and video data

Today, we begin to roll up the code. First, we use the FFmpeg API to extract the audio data of an MP4 file. IDE It should be the first time to do C/C...
17:42 3 December 2019

30 second PHP snippet Math math

This article is from GitHub open source project I jump. 30 second snippet of PHP code A selection of useful PHP snippets that you can understand in 30...
13:14 3 December 2019

7 Laravel programming habits help you reduce bugs in your code

The article was forwarded from the professional Laravel developer community. Original link: https://learnku.com/laravel/t... Every line of code we ad...
12:21 3 December 2019

Data structure quick sort

Fast sorting is the upgrade of bubble sorting, which belongs to exchange sorting. The basic idea of fast sorting is: the records to be sorted are div...
21:26 2 December 2019

Scala: tuples, arrays, maps

Tuple: tuple, aggregation of values of different types.Combine a fixed number of items so that they can be passed as a whole. Unlike arrays or lists, ...
15:31 2 December 2019

Spring Data JPA must master 20 + query keywords

WeChat public number: an excellent wasterIf you have any questions or suggestions, please leave a message in the background. I will try my best to sol...
9:59 2 December 2019

Logu P4063 [JXOI2017] series (dp)

meaning of the title Title Link Sol It's not hard to think about this problem, but it's very troublesome to write, and then I went to look a...
9:34 2 December 2019

Logue P4424 [HNOI/AHOI2018] treasure hunt game (thinking problem)

meaning of the title Title Link Sol Fairy question Orz Orz zbq searches 70.. Consider the nature of "and" and "or" \(0 \& 0 = ...
9:11 2 December 2019

Data structure Prim algorithm

The idea of Prim algorithm is as follows: Firstly, the points of the graph are divided into two parts: one is the visited u, the other is the UN visi...
7:05 2 December 2019

The meaning and implementation of virtual DOM

This article comes from "An essay on the meaning and implementation of virtual DOM" , if you think it's good, welcome to Star Github wa...
6:59 2 December 2019

Gracefully register events in the React component

Preface In the development of React, we often need to register some events on the window, such as pressing Esc to close the pop-up window, pressing up...
5:43 2 December 2019

Detailed Aspects Framework for iOS

We must ask ourselves such tasks: first, to learn, second to learn, and third to learn.- Lenin Today I watched a live Aspects sharing, so I want to wr...
0:58 2 December 2019

The same and different points of SELECT and SET assignment in SQL SERVER

SELECT and SET can be used to assign values to variables in SQL SERVER, but their usage and effect are different in some details. 1. In terms of varia...
0:12 2 December 2019

New features of Java 8 lambda expression

A functional interface is an interface that explicitly declares only one abstract method. To ensure that the number of methods is small, java8 provid...
18:52 30 November 2019

Convert from BitArray to Byte

I have an eight BitArray , I need a function to convert it to a byte. How do you do it? Specifically, I need a correct ConvertToByte function: BitArr...
18:12 30 November 2019

Several sort implementations for data structure - Quick sort, Bubble sort, Insert sort directly, Select sort directly, Heap sort

1. Insert Sort Directly Select one value to be sorted at a time to insert into the existing sorting sequence; (4,2,6,5,1,8) For an example of increme...
16:20 30 November 2019

X264 application engineering

In the next few blogs, learn the implementation process of X264. The analysis of source code refers to Raytheon's blog, thank you Raytheon! Blog ...
10:03 30 November 2019

PCL uses RANSAC to fit segmentation plane by itself

Using PCL segmentation algorithm pcl::SACSegmentation<pcl::PointXYZ> seg; , do not use the normal parameters, only get the segmentation patch ac...
16:31 29 November 2019

Java Self-Study-Collection Framework Binary Tree

Java Collection Framework Binary Tree Example 1: Binary tree concept A binary tree consists of nodes Binary Tree Features: Each node can have left and...
20:42 28 November 2019

[Express learning notes-1] quick start

I. Basic Concepts Express is a simple and flexible node.js Web application framework, which provides a series of powerful features to help you create ...
2:45 12 November 2019

leetcode: sum of three numbers

Train of thought: 1. Sort first (from small to large) 2. Outer loop: traverse the array, fix the number nums[i] one at a time, and then make low=i+1,...
13:17 10 November 2019

Search in 2D array of [sword finger Offer]

Sword finger Offer question Search in 2D array -- sword finger Offer 1 Title Description In a two-dimensional array (each one-dimensional array has t...
11:24 10 November 2019

Python? Restframework (frequency component)

BaseThrottle (1) take out the visitor ip (2) judge that the current ip is not in the ACCESS Dictionary, add it in, and return True directly, indicati...
9:49 10 November 2019

Initial knowledge tree and binary tree (basic knowledge explanation and common implementation)

Binary Tree Padding - Tree In the previous articles, the linear table, stack, queue, string, and so on, which we have mainly introduced, are one-to-o...
23:02 9 November 2019

Programming questions - serialization and deserialization

Title Description Please implement two functions to serialize and deserialize binary tree Ideas: (1) first, we need to build a binary tree The idea o...
11:11 9 November 2019

Programming job 20191104082520 (branch and jump) to blog

1 Write a program to read the input, stop reading the #character, and report the number of spaces, line breaks, and all other characters read. #includ...
21:07 7 November 2019

Distributed globally unique ID generation method

I. snowflake algorithm twitter's open-source distributed id generation algorithm uses 64 bit long id. 41 bit, time stamp, in milliseconds, 2 ^ 4...
11:03 7 November 2019