Java implementation of simple one-way linked list [inner class]

Article catalog Source code implementation Operation results Source code analysis Source code implementation package cn.Link; interface ILink<E> { public void add(E e);//Linked list data increase public int count();//Get the number of linked list elements public boolean isEmpty ...

Posted on Mon, 15 Jun 2020 23:19:09 -0400 by valoukh

Difference between Mutex and RWMutex

Mutex lock and read-write lock Here's a quote Performance analysis of golang mutual exclusion lock and read-write lock The definitions of mutex lock and read-write lock in are clear mutex 1. There are two operations for mutex: acquire lock and release lock 2. When a goroutine acquires the mutex, no ...

Posted on Mon, 15 Jun 2020 23:14:29 -0400 by doofystyle

Python Version Commodity Futures Multivariate Average Line Strategy

Complete transplantation from "Multi-variety average strategy for CTP commodity futures" Since the Python version of the commodity futures strategy does not yet have a multi-variety strategy, the JavaScript version of the "CTP commodity futures multi-variety average strategy" has been transplanted.Provides some design ideas ...

Posted on Mon, 15 Jun 2020 22:13:13 -0400 by eldee

Deep learning: starting from the deeper network

This paper is part of the reading notes of "getting started with deep learning based on Python theory and implementation" Code and picture refer to this book catalog Add deep motivation Reduce the number of network parameters Make learning more efficient High speed of deep learning High s ...

Posted on Mon, 15 Jun 2020 03:28:05 -0400 by Brandito520

Android Q graphics system uses pure native API to draw a window

This article draws a window according to the previous analysis and implements it with the pure native API. The native API here is not ndk, but a native layer function, which needs to be implemented in the AOSP compilation environment. First, create the drawWindowTest test directory in the / frameworks/n ...

Posted on Mon, 15 Jun 2020 01:58:37 -0400 by akumakeenta

Sword finger off

1, Linked list2, Queues3, Stack 1, Linked list JZ3 printing chain list from end to end The k last node in JZ14 list JZ15 reverse list JZ16 merges two sorted linked lists Copy of JZ25 complex linked list JZ26 binary search tree and double linked list The first common node of two linked lists of JZ ...

Posted on Mon, 15 Jun 2020 01:43:43 -0400 by Dave Liebman

ARTS Week 5 | LeetCode 44 regular expression | Redis backup details | Golang retrospective memory skills

ARTS ARTS is an activity launched by Chen Hao in the geek time column, aiming to stick to learning through sharing. Each person writes an ARTS every week: Algorithm is an Algorithm problem, Review is to read an English article, technology / tips is to Share a small technology, and Share is to Share a point of view. This week This week's ARTS yo ...

Posted on Mon, 15 Jun 2020 00:16:24 -0400 by char skd1

Ten sorting algorithms (notes)

explain: Ten sorting algorithms are implemented in Python. There is only a simple explanation and no detailed introduction of the algorithm. Related terms: Stable sorting: if a is in front of B, and a==b, a is still in front of B after sorting, it is a stable sorting. Unstable sorting: if a is originally in front of b, and a==b, and a may not b ...

Posted on Sun, 14 Jun 2020 01:03:51 -0400 by tazz

Understand the principle of thread pool by hand

==> Learning summary (continuous update) ==> Build back-end infrastructure series from scratch (I) -- background introduction Summary: Part I A simple lockless thread pool is realized, novelette This paper focuses on the analysis of java thread pool source code. 1, Basic conceptsIn fact, to under ...

Posted on Sat, 13 Jun 2020 06:38:28 -0400 by drummerboy

PCL -- preprocessing (filtering)

Point Cloud Filtering wave filtering When acquiring point cloud data, due to the impact of equipment accuracy, operator experience, environmental factors and other factors, some noise points (that is, points we can't use) are inevitable in point cloud data. We need to remove these points when proces ...

Posted on Sat, 13 Jun 2020 04:14:43 -0400 by jeremuck