Sorting algorithm (2): exchange sorting

Exchange sort can be divided into bubble sort and fast sort. Among them, fast sorting is an improvement on bubble sorting 1. Bubble sorting Principle: compare the adjacent two numbers, and exchange them from small to large. After one pass, the largest (smallest) number will be exchanged to the last one, and then compare the two numbers from the ...

Posted by lttldude9 on Thu, 28 May 2020 09:15:12 -0700

ArrayList - Understanding common methods based on source code

ArrayList should be one of the most common list implementation classes in your usual code. It should be a surprise to learn more about common methods by looking at the source code, as well as infrequent ones.This time, look at the corresponding source in terms of method familiarity, it is necessary to paste the source. 1. ArrayList header com ...

Posted by Think Pink on Wed, 27 May 2020 10:23:59 -0700

The concept of enter, exit and update in d3

d3 is based on the idea of data binding. Selectors select elements, and then elements are bound to data. Because the number of elements and data may not be the same, it will result in more elements than data or less elements than data. Element corresponds to data one by one. It is the update part, which is used to update elementsElement less t ...

Posted by allelopath on Wed, 27 May 2020 07:57:24 -0700

Oracle Query_Form Query

Previously, we detailed the changes and additions to Oracle. Today let's go on to learn more about Oracle's queries. Queries in Oracle are a big deal!!! Follow the steps of brilliant sir, move, move ~~   Small bag of knowledge Before that, let's talk about a little bit of Oracle commentary, which is very helpful for our development, oh!!! ...

Posted by boyakasha on Tue, 26 May 2020 10:43:55 -0700

Write a simple game in golang

In the last article, I left some questions. Although I have added a setting "bomb", the location around the bomb is not passable, but the number of bombs is still too small, so it's a bit monotonous. If I want to enrich the game, I need to increase the number of bombs. There is a problem here. If the location of the bomb is random, t ...

Posted by tmaiden on Mon, 25 May 2020 07:05:31 -0700

My jdk source code: skeleton implementation class of abstractset family

1, Overview AbstractSet class is the skeleton implementation class in Set family. It constructs a layer of abstraction between interface and implementation class. Its purpose is to reuse some common functions and facilitate extension, and provide common method templates for subclasses. The AbstractSet class has much less content than the Abstr ...

Posted by colB on Sun, 24 May 2020 07:31:30 -0700

Dynamic generation of raster layouts using React short code

As a sub-process module of TerminalMACS, React Web Management, uses Ant Design Pro as the framework. The knowledge to which this article applies 1. Use of methods in style file less 2.for Loop Create Button and Raster Layout (flex Layout) 1. Final results and source links As a front-end novice, I spent several days doing this simple functio ...

Posted by transformationstarts on Sat, 23 May 2020 13:45:50 -0700

How to add click sound to buttons

preface Many well-made apps have their own click sound effect, so how to achieve this effect simply is a concept called SoundPool , this class is mainly used to play some smaller audio files, because it is more convenient, usually used in the game more. code Without much gossip, we need to do a function now, ...

Posted by icedude on Sat, 23 May 2020 09:28:01 -0700

Start from scratch ASP.NET Plug in development of core MVC - Summary of recent problems and solutions to some problems

Title: implement from scratch ASP.NET Plug in development of core MVC (7) - Summary of recent problems and solutions to some problems By Lamond Lu Address: https://www.cnblogs.com/lwqlun/p/12930713.html Source code: https://github.com/lamondlu/Mystique Prospect review Start from scratch ASP.NET Plug in development of core MVC (1) - ...

Posted by bubblegum.anarchy on Fri, 22 May 2020 00:20:18 -0700

gRPC load balancing (custom load balancing policy)

preface The previous article introduced how to achieve gRPC load balancing, but at present, only pick is officially provided_ First and round_ Two load balancing strategies of Robin, round_robin can't meet the requirements of different server configurations, so this article will introduce how to implement a custom load balancing strategy calle ...

Posted by BlueGemini on Wed, 20 May 2020 23:54:31 -0700