[algorithm experience] array 11, 15
11. Container with the most water
Give you n nonnegative integers a1, a2,..., an, each representing a point (i, ai) in the coordinate. Draw n vertical lines in the coordinates. The two endpoints of vertical line i are (i, ai) and (i, 0). Find two of these lines so that the container they form with the x-axis can hold the most water.
My idea: ...
Added by AAFDesign on Tue, 08 Mar 2022 15:39:39 +0200
Dubbo's first glimpse of Workflow
flow chart
When the service provider starts, it writes its own metadata information to the registry and subscribes to the configuration metadata information.When consumers start, they will also write their own metadata information to the registry and subscribe to service provider, routing and configuration metadata information.If monit ...
Added by prometheuzz on Tue, 08 Mar 2022 15:38:16 +0200
Android CameraX enables taking photos and recording videos
1, Foreword
From Camera1 to Camera2, and now CameraX in Jetpack, Google has been committed to making it easier for Android application developers to use camera related API s and realize camera related application functions more simply and quickly; Let's learn how to use CameraX to take photos and record videos;
2, CameraX overview
CameraX is ...
Added by cringe on Tue, 08 Mar 2022 15:33:59 +0200
Cryptography in reverse analysis -- MD5
0x01 introduction
MD5 message digest algorithm (English: MD5 message digest algorithm), a widely used cryptographic hash function, can generate a 128 bit (16 byte) hash value. It can be used to ensure the integrity and consistency of information transmission. Save the password in the database (md5(pass,salt) mode).
0x02 algorithm flow
1. Dat ...
Added by egroeg41 on Tue, 08 Mar 2022 15:25:42 +0200
JavaSE foundation day10 polymorphism, abstract class / method and interface
I Polymorphism
(1) Polymorphism overview
1. Many forms of things are polymorphic
Polymorphism in java is understood as the embodiment of different data types of objects, that is, subclass objects act as parent type objects
2. Premise of polymorphism:
(1) There must be inheritance or implementation relationship
(2) Methodical rewriting
(3) T ...
Added by drayfuss on Tue, 08 Mar 2022 15:24:47 +0200
Introduction to C + + Basics
Introduction to C + + Basics
1. Initial knowledge of C + +
[introduction to C + +]( (31 messages) [C + +] dark horse programmer "C + + from introduction to Mastery"_ Langli xiaofeixia blog - CSDN blog_ Dark horse programmer C++)
1.1 the first C + + program
#include<iostream>
using namespace std;
int main()
{
int a =10 ...
Added by norpel on Tue, 08 Mar 2022 15:13:23 +0200
Golang interface {}
prefaceThis article will mainly introduce the interface {} in golang and unlock its mysterious veil. Before introducing it, we need to understand the type system of golang, and then introduce the use of interface, the underlying principle of interface and the principle of interface in reflectionType systemThe built-in types of Golang include in ...
Added by enemeth on Tue, 08 Mar 2022 15:11:37 +0200
Azure KeyVault is an alternative Class library method for operating secrets on NET Core ----- azure Security. KeyVault. Secrets
1, Introduction
We were in the last article Net Core Web project added Nuget package of "Microsoft.Azure.KeyVault" to operate secrets data of Azure KeyVault. Microsoft has abandoned "Microsoft.Azure.KeyVault" Nuget. We recommend you to use "Azure.Security.KeyVault.Secrets".
1) Azure Key Vault confidential client li ...
Added by harkly on Tue, 08 Mar 2022 15:07:00 +0200
JQuery framework (simplified js Development)
JQuery Basics
(1) Basic concepts:
Simplify js development
Optimize HTML document operation, event processing, animation design and Ajax interaction JavaScript framework: the essence is some js files, which encapsulate the methods
(2) Quick start:
Steps:
Download JQuery fileImport JQuery fileUse file jquery-xxx.js and jQuery XXX Diff ...
Added by Kwakhed on Tue, 08 Mar 2022 15:01:27 +0200
Edge detection with unity Shader post-processing
This paper records the process of using sobel operator for edge detection to realize the post-processing effect of unity stroking screen (Learn by "Introduction to unity shader")
unity realizes the screen post-processing effect as follows:
1. First, add a script for screen post-processing in the camera. The script needs to check wheth ...
Added by miltonbanks on Tue, 08 Mar 2022 14:53:06 +0200