2 solutions - complete jumping game

Article directory subject Solution 1 (double finger needle method) Solution 2 (violence method) subject You have an array of integers, arr. you start at the first element of the array (subscript 0). At each step, you can jump from subscript i to subscript: i + 1 satisfies: i + 1 < arr.length ...

Posted by magaly on Tue, 11 Feb 2020 03:17:12 -0800

Data Structure Handwriting Tree Traversal (Full Implementation)

1. Summary of Previous Situation This is a tree traversal implementation. To focus on how queues are implemented, follow these articles:Data structure (3) Handwritten queues2. Basic concepts of trees Chain lists, stacks, and queues are one-to-one linear structures, one-to-many linear structures - trees. ...

Posted by amrigo on Mon, 10 Feb 2020 21:47:25 -0800

Diagram of the core implementation of kubernetes container lookup mechanism

After a container is pulled up by kubelet in k8s, the user can specify the way of sniffing to check the health of the container. TCP, Http and command are currently supported. Today, the implementation of the whole sniffing module is introduced to understand the implementation of its periodic detection, counter, delay and other design. 1. Explo ...

Posted by Stunt on Mon, 10 Feb 2020 21:21:00 -0800

The Process of Mingo linux Kernel

process Processes are also called tasks in linux. For user space, a process is an instance of program execution.A process can be compared to a human individual: there is only one parent process and there can be multiple child processes; there are more or less valid lives; it takes on certain functi ...

Posted by parthatel on Mon, 10 Feb 2020 21:10:26 -0800

Python basic string operation common function set

This article mainly introduces the common function set of string operation based on Python. Please refer to Article directory 1. Definition of string 2, slice 3. Capitalize (capitalize()) 4. Count (sub, start = none, end = none) 5,center(width,fillchar) 6,ljust(width,fillchar) 7.rjust(width,fillchar) ...

Posted by superpimp on Mon, 10 Feb 2020 07:23:03 -0800

The hottest front-end layout at present

1. rem Foundation rem unit rem (root em) is a relative unit, similar to em. EM is the font size of the parent element, and the benchmark of rem is the font size of the html element. For example, if the root element (html) is set to font size = 12px and the non root element is set to width:2rem, then ...

Posted by esconsult1 on Mon, 10 Feb 2020 04:18:18 -0800

Chapter 9.4 exercise and summary of C++ Primer

9.4 how vector objects grow In order to support fast random access, the physical storage mode of vector object is continuous storage, and because vector is dynamic size, it involves a problem. If the storage space allocated by the current vector container is full and no new elements can be added, then ...

Posted by JJBlaha on Sun, 09 Feb 2020 21:38:30 -0800

Linux storage IO stack -- an overview of SCSI subsystem

Summary Hierarchical architecture of Linux SCSI subsystem: Low level: it represents the actual driver of the physical interface with SCSI, such as the driver developed by each manufacturer for its spe ...

Posted by networkguy on Sun, 09 Feb 2020 20:20:54 -0800

Data structure - graph storage

Some of the algorithms in the figure are relatively complex, which is summarized in multiple blogs Related concepts of Graphs In fact, the previous data structures are relatively simple, and the previous memory is still relatively clear. However, some concepts are a little fuzzy when it comes to the f ...

Posted by cwls1184 on Sun, 09 Feb 2020 05:22:17 -0800

Talk about QuorumManager of artemis

order This paper focuses on the quorum manager of artemis ClusterTopologyListener activemq-artemis-2.11.0/artemis-core-client/src/main/java/org/apache/activemq/artemis/api/core/client/ClusterTopologyListener.java public interface ClusterTopologyListener { /** * Triggered when a node joins the cluster. * * @param member * @pa ...

Posted by csimms on Sat, 08 Feb 2020 09:16:12 -0800