Div. 2, based on technology 2020 elimination round 2

Conclusion: Group 2 / 1 / 1 questions, to be improved, near-term goal 3 / 3 / 3. Disadvantages: English reading is not good. I didn't know how to open a map dynamically, so I was stuck by problem B. Without considering the special situation, the boundary and special situation of question C were not h ...

Posted by Daveyz1983 on Sat, 26 Oct 2019 07:30:09 -0700

MySql database learning

MySql database learning (1) mySQL (relational database management system) MySQL is a relational database management system, developed by MySQL AB company in Sweden, which is currently a product of Oracle. MySQL is one of the most popular relational database management systems. In WEB application, MySQ ...

Posted by fresch on Fri, 25 Oct 2019 21:22:24 -0700

Difference between stackSize of Thread and - Xss parameter

The stackSize and Xss parameters of Thread can control the stack memory size of a Thread. Do you know the difference between them? When these two configurations exist at the same time, which one shall prevail?If you don't know the answer, read on. stackSize of Thread What is the stackSize of Thread? The stackSize parameter can be passed in the ...

Posted by mcovalt on Fri, 25 Oct 2019 20:24:06 -0700

Sword finger: the stack containing min function (min stack)

Title Description Design a stack that supports push, pop, top and other operations and can retrieve the minimum elements in O(1) time. push(x) - insert element x into the stack pop() - remove top element top() - get the top element of the stack getMin() - get the smallest element in the stack Example MinStack minStack = new MinStack( ...

Posted by nalleyp23 on Fri, 25 Oct 2019 13:13:25 -0700

3D model bevel generation based on HTML5 WebGL

Preface There are not only horizontal faces in 3D scene, but also countless faces in space. So we may place objects on any face. How to determine the faces in space? We know that a face in space can be made up of a point and a normal. The left side of the Demo is the panel. Drag the object from the panel to the 3D scene on the right. Of course ...

Posted by keithh0427 on Thu, 24 Oct 2019 19:50:24 -0700

Netty - sticky and half wrapped

In the previous article, we introduced sticky package and half package and their general solutions. Today, we will focus on how Netty implements the framing scheme.<!-- more --> Decoding core process Three kinds of decoders, FixedLengthFrameDecoder, DelimiterBasedFrameDecoder, LengthFieldBasedFrameDecoder, have been introduced before. The ...

Posted by ngreenwood6 on Wed, 23 Oct 2019 19:05:38 -0700

python self study diary 5 - word game

It's better to record yourself or observe others' thinking from mistakes to right when learning python than only seeing the right answers 1. Judge whether there is letter "e" in the word“ Write a function has no e to return True when the given word does not contain the letter 'e' At the beginning, I wrote as follows: def has_no_ ...

Posted by NeverPool on Wed, 23 Oct 2019 11:58:30 -0700

Smart file name sorting

Default sorting problem windows sorting In the resource management of Windows, the intelligent sorting function of file names is provided, which can identify the numbers in file names (the number of digits is different), and then compare the number sizes for sorting, as shown in the following figure: Code default sort But in the list sort ...

Posted by lizzardnub on Wed, 23 Oct 2019 10:20:39 -0700

Summary of comparison methods of validate in httprunner

1. Whether the actual result is equal to the expected result: equals or eq or = = or is # Meaning: check_value == expect_value "validate": [ {"check":"check_value", "comparator": "eq", "expect": "expect_value"} ] 2. The actual result is less than the expected result: less than or lt # Meaning: check value ...

Posted by feelay on Wed, 23 Oct 2019 07:33:49 -0700

The implementation and use of KeepAlive in jetcd

Preface There are many open source implementations of Etcd's Java client. Jetcd is the Java client of Etcd's official warehouse. The overall api interface design and implementation are similar to the official go client, simple and easy to use. Among them, the lease renewal interface provides two interfaces: keepAliveOnce and keepAlive. As its n ...

Posted by nalleyp23 on Wed, 23 Oct 2019 00:24:06 -0700