leetcode Scratch Record - -- 19.9.13

Summary 1. The k th largest element in the array, using the idea of fast partition, plus binary retrieval 2. Bit count, the intuitive method of time complexity is o (n*sizeof(int). The effective way to reduce time complexity is to judge the par ...

Posted by fukumdaryl on Sat, 14 Sep 2019 04:08:08 +0200

React high-order components and application scenarios

Links to the original text: https://juejin.im/post/5d7893d56fb9a06af92bcdbe What are higher-order components? Before explaining what higher-order components are, you can first understand what higher-order functions are, because their co ...

Posted by JADASDesigner on Thu, 12 Sep 2019 03:49:51 +0200

Simple spring cloud application building

I. Sprcloud Microsoft Service Architecture 2. Building Sprcloud application step by step service client Service: Application that provides services. Port is 808x Client: The application port for invoking the service is 809x The whole program uses the client end to call the server end program according to the user id to return user informatio ...

Posted by nightdesigns on Wed, 11 Sep 2019 12:54:50 +0200

[Series] - go-gin-api routing Middleware - catch exceptions

Summary Firstly, the project overview is synchronized: Last article shared, routing Middleware - logging, this article we share: routing Middleware - catch exceptions. When the system is abnormal, prompt "system abnormal, please contact the administrator!" At the same time, panic alert mail is sent. What is an exception? The excepti ...

Posted by mcubedma on Wed, 11 Sep 2019 07:04:23 +0200

Some of the wonders of python development

This article serves as a record of some of the tricks encountered in the use of python, some of which are written by myself, some of which are built-in functions of python, and some of which are taken from the Internet. In this record, only for backu ...

Posted by straycat on Tue, 10 Sep 2019 15:07:20 +0200

Cheap and inexpensive - springboot Cluster Solution on Small and Micro Enterprise Cloud 2.1: Message subscription and session expiration mechanism for redis

1. session Storage Structure in redis 2 stay The previous chapter When we talk about spring session storage in redis, we can see that every session storage in redis generates three records. The record format is as follows: This is very troublesome, why can't one by one correspond, do each other's angels, do a pair of three, very influential ...

Posted by funkdrm on Tue, 10 Sep 2019 12:21:47 +0200

Encrypt files with Python, unbreakable!

In life, sometimes we need to encrypt some important files. Python provides easy-to-use encryption libraries such as hashlib and base64. * * But for everyday learning, we can use XOR operation to implement a simple file encryption program, thus stren ...

Posted by whizzkid-000 on Tue, 10 Sep 2019 11:15:12 +0200

Java Foundation -- Observer Design Patterns

Since bloggers have recently reviewed the basics and learned new knowledge points over and over again, blog articles published will not be published in sequence, but are well categorized.      Learn together and make progress together. Continue to precipitate, slowly strong. I hope this article will be helpful to you. If there is something wr ...

Posted by breath18 on Tue, 10 Sep 2019 09:51:20 +0200

boost format usage details

Sketch Programming often encounters the need to format the data used, such as generating strings to record logs, generating complete data sent to the network, and so on. It may be necessary to format int, string, char, etc. Common methods include ...

Posted by mesh2005 on Tue, 10 Sep 2019 08:50:20 +0200

Map for Java Collection Source Analysis: Super Interface Map_One Point Classroom (Multi-shore College)

Array and linked list have their own advantages and disadvantages in data processing. Array query is fast and insertion is slow. Linked list performs well in insertion, but the query is weak. Hash table integrates the advantages of array and linked list, and has good speed in insertion and search. The HashMap we will analyze later is implemente ...

Posted by pmaonline on Tue, 10 Sep 2019 07:53:58 +0200