LeetCode algorithm -- binary search + double pointer
Although lz is still a master of laboratory brick moving, with the ambition of becoming an excellent programmer ape and the idea of "stupid birds fly first", I decided to start my journey of LeetCode (sprinkle flowers ★, °: ☆ ( ̄▽  ̄) / $:. ° ★.)
I measured my level rationally. After some selection, I decided to start wit ...
Posted by rroc on Mon, 01 Nov 2021 05:24:01 -0700
Installation and use of element UI, iview, vant and Vuex
Vue_UI and Vuex
UI Library
element-ui
Official website: https://element.eleme.cn/#/zh-CN/component/installationhttps://element.eleme.cn/#/zh-CN/component/installation
Element, a desktop component library based on Vue 2.0 for developers, designers and product managers
Element UI is a third-party PC side component library based on vue box
I ...
Posted by zimmo on Mon, 01 Nov 2021 04:57:43 -0700
E. Height All the Same-Codeforces Round #630 (Div. 2)
E. Height All the Same
General idea of the topic
Given the grid of \ (n * m \), cubes can be placed on each grid. Initially, there are \ (a_{i,j} \) cubes on the grid with coordinates of \ ((i,j) \). Now there are two operations:
Select two adjacent squares and place a cube on top of each
Select a person's Square and place two cubes on it
It ...
Posted by Adarmo on Mon, 01 Nov 2021 04:53:03 -0700
Spring Cache takes you flying
Spring version 3.1 introduces the annotation based cache technology and provides a set of abstract cache implementation scheme. It uses the cache through annotation and flexibly uses different cache components based on configuration. The code is quite flexible and extensible. This paper analyzes the code art of Spring Cache based on the Spring ...
Posted by keiron77 on Mon, 01 Nov 2021 04:53:50 -0700
CDH6.3.2 integration with Apache Flink1.12.0
edition: Centos7.6 JDK1.8 Scala2.11 Python2.7 Git1.8.3.1 Apache Maven3.6.3 CDH6.3.2 Apache Flink1.12.0
The above software needs to be installed in advance!!!
1, Compile Flink
1 download the flink source code
git clone https://github.com/apache/flink.git
git checkout release-1.12.0
2. Add maven image
Add the following mirrors in the m ...
Posted by mustatin on Mon, 01 Nov 2021 04:52:28 -0700
Drag the mouse to resize the window - Qt
Transferred from: Qt - drag the mouse to adjust the window size - remove ice and sugar - blog Garden (cnblogs.com)
Requirement: when the mouse moves to the corner of the interface, the mouse style changes accordingly.
Implementation method 1:
Override mouseMoveEvent. If the mouse is not pressed, set the mouse style according to the positio ...
Posted by onthespot on Mon, 01 Nov 2021 04:34:11 -0700
1. Problem solving report of school Simulation Competition
Expected score: 100 + 30 + 0 = 130
Actual score: 70 + 30 + 0 = 100
summary
Set of test follies:
T1 uses the line segment tree to write the maximum and minimum values of a monotonic sequence.
T1 thinks that \ (mlog^2n \) can run over the data of \ (10 ^ 6 \).
The initial value of T2 \(dp \) is incorrectly assigned. Fortunately, there is a large ...
Posted by aiwebs on Mon, 01 Nov 2021 04:20:57 -0700
Spring MVC basic usage
Spring MVC overview
Spring MVC is a web framework based on MVC design concept officially provided by spring. (equivalent to Servlet)
Spring MVC is a framework for MVC control based on Servlet encapsulation. Realize the data interaction between the front end and the server.
Comparative advantages of Spring MVC and Servlet
Strictly abid ...
Posted by ericcampbell30 on Mon, 01 Nov 2021 03:54:30 -0700
Codeforces 1606F - Tree Queries (virtual tree + tree dp)
Codeforces problem plane portal & Luogu problem plane portal
Obviously, the points we choose to delete together with \ (u \) will form a connected block. Otherwise, if we choose not to delete the points that are not in the same connected block with \ (u \), the answer must be better.
Note that if we choose to delete a son \ (V \) of \ (u \) ...
Posted by Salsaboy on Mon, 01 Nov 2021 03:51:40 -0700
Design pattern - abstract factory pattern
Design pattern - abstract factory pattern
meet Simple factory mode,Factory method model
In the factory method mode in the previous chapter, a factory only produces one product, which has good scalability, but in reality, factories are diversified. A factory can create a series of products. At this time, the factory method mode is not applicab ...
Posted by alan543 on Mon, 01 Nov 2021 03:46:57 -0700