Talk about Nacos Naming Service's Select Instances

order This paper mainly studies the selectInstances of Nacos Naming Service. NacosNamingService nacos-1.1.3/client/src/main/java/com/alibaba/nacos/client/naming/NacosNamingService.java public class NacosNamingService implements NamingService { private static final String DEFAULT_PORT = "8080"; private static final long DEFAULT_HEART_BEA ...

Posted by mr_hacker on Tue, 08 Oct 2019 13:45:26 -0700

A1133 Splitting A Linked List (25 points | linked list, with detailed annotations, logical analysis)

Written in front Thinking analysis Understanding the meaning Given a list and K, after traversing the list, the nodes < 0 will be output first, then the nodes in the range of 0-k will be output, and finally the nodes in the range of > k will be output. Specific realization: 1. All nodes ar ...

Posted by dirkie on Tue, 08 Oct 2019 10:50:24 -0700

H.266/VC Code Learning Note 13: getInterMergeCandidates () Function

GetInterMerge Candidates () function is a very important function in inter-frame prediction technology. It is the constructor of Merge list. All Merge modes must first construct a Merge candidate list, and then extend the corresponding Merge list on the basis of this regular Merge list according to diff ...

Posted by PickledOnion on Tue, 08 Oct 2019 10:04:05 -0700

Summer vacation training 2019.08.01 chemistry

Title: Give a tree with $n $dots, $m $queries. Give $x $for each query, and find the smallest $k $to break the $k $edge off the tree and reconnect the $k $edge to form a new tree. The tree's center of gravity is $x$. $ $ The center of gravity of a tree: For every node in a rootless tree, the node with the largest subtree and the smallest subtre ...

Posted by Volte on Tue, 08 Oct 2019 01:23:12 -0700

Let Quick Sort Stack Overflow

The idea of quick sorting is dichotomy. Ideally, every dichotomy can divide the data sequence equally, so the recursive hierarchy is logN. The worst case is that every dichotomy is divided into 0 and n, which will be infinitely recursive, and eventually stack overflow. Or each time is divided into 1 and n-1, which will recurse n times. If n is ...

Posted by freddyw on Tue, 08 Oct 2019 01:18:03 -0700

How java formats json data and outputs it to the console

In the process of interface testing, most data interaction uses json format, but the effect of json output from console is far less beautiful than that of browser plug-in. After searching for some information, I decided to write a formatting method to output json information to the console. After some attempts, it has been completed. Share as f ...

Posted by parms on Tue, 08 Oct 2019 00:23:00 -0700

There are four methods to find quality in java.

The first is that the double for cycle makes the calculation of divisors and dividends extremely inefficient. public void test1(int n){ long start = System.currentTimeMillis(); //Take the start time int num=0; boolean sign; for(int i=2;i<n;i++){ if(i % 2 == 0 && i != 2 ) conti ...

Posted by naveenbj on Mon, 07 Oct 2019 16:23:07 -0700

less Basic Learning

  Compilation tools, which can automatically compile using the easy less plug-in in vs code The generated css files are in the same directory as less files by default. https://blog.csdn.net/mcYang0929/article/details/81703050   Declare variables, easy to maintain   Hybrid grammar ...

Posted by Edwin Okli on Mon, 07 Oct 2019 15:12:13 -0700

Sorting-Two-Way Merge Sorting

Algorithmic idea: splitting an unordered sequence into a subsequence with only one keyword, and then merging two sequences until merging into one sequence Time complexity analysis: a total of log2n sorting operations are needed, each sorting performs n merging operations, so the time complexity is ...

Posted by CaptianChaos on Mon, 07 Oct 2019 10:48:18 -0700

Graphic Design Patterns (11) Strategy Patterns

I. Application scenarios Shopping malls adopt different discount strategies for different customers. Different construction methods are used for different topography and landforms, and different algorithms are selected for different batch data processing. For commonly used     if() {     }else ...

Posted by nickminute on Mon, 07 Oct 2019 06:46:28 -0700