leetcode-4. Finding the median of two positive arrays

leetcode-4. Find the median of two positive arrays. Given two positive (small to large) arrays of sizes m and n, nums1 and nums2. Please find the median of these two positive sequence arrays, and the time complexity of the algorithm is required to be O(log(m + n)). You can assume that nums1 and nums2 are not both empty. Example 1: nums1 = [1, 3 ...

Posted by kooper on Thu, 14 May 2020 16:09:57 +0200

LeetCode 235. The nearest common ancestor of binary search tree

My LeetCode: https://leetcode-cn.com/u/ituring/ My LeetCode source code [GitHub]: https://github.com/izhoujie/Algorithmcii LeetCode 235. The nearest common ancestor of binary search tree subject Given a binary search tree, the nearest common ancestor of two specified nodes in the tree is found. The definition of the nearest common ancestor in ...

Posted by bogdan on Wed, 13 May 2020 08:01:37 +0200

Spring boot series integrated mail sending service and several ways of mail sending

Previous recommendation Spring boot series (I) idea new spring boot project Introduction to SpringBoot series (2) Spring boot series (3) configuration file details Spring boot series (IV) detailed explanation of web static resource configuration Spring boot series (V) Mybatis integrated full detailed version Spring boot series (6) integrated ty ...

Posted by jpbellavance on Sat, 09 May 2020 05:43:17 +0200

LeetCode 297. Serialization and deserialization of binary tree

My LeetCode: https://leetcode-cn.com/u/ituring/ My LeetCode source code [GitHub]: https://github.com/izhoujie/Algorithmcii LeetCode 297. Serialization and deserialization of binary tree subject Serialization is the operation of converting a data structure or object into continuous bits, and then the transformed data can be stored in a file or ...

Posted by baccarak on Fri, 08 May 2020 14:56:28 +0200

python Foundation: producer and consumer model under multiprocess

Introduction to producer consumer model 1. Why the producer consumer model is needed Producer refers to the task of production data, and consumer refers to the task of consumption data. When the producer's production capacity is far greater than the consumer's consumption capacity, the producer needs to wait for the consumer to consume before c ...

Posted by Spaceboy on Fri, 08 May 2020 12:27:28 +0200

How to use Istio for multi-cluster deployment management: Single Control Plane Gateway Connection Topology

Author|Wang Xining Senior Technical Expert of Alibaba Guidance: This paper is abstracted from the book "Istio Service Grid Technology Analysis and Practice" written by Wang Xining, a senior technical expert in Ali Cloud. It describes how to use Istio to manage multi-cluster deployment to illustrate the support capability of service ...

Posted by ainoy31 on Thu, 07 May 2020 19:48:08 +0200

Android Jetpack Architecture - Paging custom pull-up loading more

Jetpack series Android Jetpack architecture component - Lifecycle usage Android Jetpack architecture component - LiveData usage The use and principle of ViewModel, an architecture component of Android Jetpack Android Jetpack architecture component - Paging introduction and Practice Android Jetpack architecture component - Roo ...

Posted by ganlal on Wed, 06 May 2020 06:04:28 +0200

[Android] get current network status summary

Preface When our App makes network requests, it often encounters network disconnection, reconnection, data flow and WIFI changes. So how do we judge the current situation? Next, we will introduce the commonly used network state judgment methods. Determine if there is a network connection Judge whether WIFI network is available Determine whethe ...

Posted by pdub56 on Wed, 06 May 2020 00:24:55 +0200

Step by step to complete Kubernetes binary deployment -- etcd cluster building (single node)

Completing Kubernetes binary deployment step by step (I) -- etcd cluster building (single node) Preface The basic theory and core components of Kubernetes are briefly introduced. The first step of deploying Kubernetes cluster with single node and binary system is to build etcd cluster experiment flow. List of cluster planning (the next article ...

Posted by RestlessThoughts on Tue, 05 May 2020 17:14:40 +0200

Android uses WeChat, Alipay and qq wallet H5 to pay.

There was a project before Android using webview to load the contents of the web page, and then adding the original function of APP. This project has the integration of WeChat, Alipay, qq wallet and other H5 payment methods. Recently, the content of the payment version has been upgraded on the webpage side, resulting in ...

Posted by fotofx on Mon, 04 May 2020 21:35:36 +0200