Tag:array

  • Basic data structure and algorithm merging and sorting

    Time:2021-10-22

    origin Recently read < < my first algorithm book > > ([Japan] Ishida Baohui; Miyazaki Xiuyi)This series of notes is intended to use golang exercises Merge sort The merge sort algorithm divides the sequence into two subsequences with the same length, When it is impossible to further divide (that is, there is only one data […]

  • Online HTML to JS / JSON tool

    Time:2021-10-22

    Online HTML to JS / JSON tool Online HTML to JS / JSON tool This tool supports the HTML to JS / JSON tool, and converts HTML strings into JS variable form or JSON array form, which is generally used for JS string splicing. https://tooltt.com/html2js/

  • Source code | data type for financial scenario: numeric

    Time:2021-10-22

    Senior Database Kernel R & D of Gao riyao Graduated from Huazhong University of science and technology, likes to study the mainstream database architecture and source code, and has long been engaged in the research and development of distributed database kernel. Once participated in the development of cirrodata kernel of distributed MPP database (Dongfang Guoxin), […]

  • Collection operation of reading zepto source code

    Time:2021-10-22

    The following chapters will interpret the following in zeptodomRelated methods, that is, the source code$.fnObject. The zepto source code series has been posted on GitHub. Welcome to star:reading-zepto Source version The source code of this article iszepto1.2.0 .forEach() forEach: emptyArray.forEach Because zepto’sdomCollection is an array of classes, so here we simply copy the arrayforEachmethod. concreteforEachSee […]

  • A series of knowledge points — ten sorting algorithms implemented in Python

    Time:2021-10-22

    Write in front Sorting is the two most important concepts in search algorithm. We are searching and sorting in most cases. Scientists have made every effort to make sorting and searching faster. This article uses Python to implement the top ten sorting algorithms. Dry goods Sorting algorithms can be divided into many categories from different […]

  • Tree array and its application

    Time:2021-10-21

    1. Principle of tree array In programming, we need to maintain the prefix and s of a one-dimensional array, let s [i] = a [1] + a [2] +… + a [i]. If we modify the value of any element a [i], the related prefix and s [i], s [i + 1],…, s [n] will […]

  • [PHP data structure] linear table? Sequence table? Linked list? Don’t be silly and confused

    Time:2021-10-21

    Follow all textbooks and books related to various data structures. Let’s start with linear tables. Today’s article is more conceptual, which is a summary of a knowledge point with a linear table. As mentioned above, physical structure is used to determine how data is stored. Other data structures (trees, graphs) and algorithms are basically based […]

  • Mongodb basic operation

    Time:2021-10-21

    More welcome to the blog:https://imjianjian.github.io Mongodb version: 3.4 consult your documentation find() Query all db.collection.find({}) db.collection.find() Document query //Query all documents with name = “Jian” db.collection.find({“collection”:”jianjian”}) Conditional Operator $LT less than $GT greater than $GTE is greater than or equal to $LTE less than or equal to $ne is not equal to $all inclusive $in […]

  • Source code analysis – HashMap

    Time:2021-10-20

    preface High frequency use in daily workHashMapThis data structure, and I also encountered relevant interview questions in the last job search process. Tonight, learn about the internal design of the data structure by reading the source code. JDK version 1.8.0_ two hundred and thirty-one text Inheritance relationship HashMap inheritsAbstractMapClass, which implementsMap Cloneable SerializableInterface. MapThe interface […]

  • Range and index in c#8

    Time:2021-10-20

    Source:https://note.guoqianfan.com/2021/07/13/Range-and-Index-in-csharp Range range Range operator Range operator:.., it generates aRangeObject. Syntax:{startIndex}..{endIndex}: containsstartIndex,Not includedendIndex limit:0 <= startIndex <= endIndex <= arr.Length, others will report errors! startIndexbe equal toendIndexIf the element cannot be retrieved, anEmpty array。 be careful: By default,..In front of the is0, followed byarr.Length(excluding)。..Equivalent to0..arr.Length。 therefore..Front and back ofCan be empty。 therefore..It can also be […]

  • Filters and custom plug-ins in Vue component development

    Time:2021-10-20

    Filters and custom plug-ins in Vue I can’t think of it. Bring the official oneVue.js allows you to customize filters that can be used for some common text formatting. Filters can be used in two places: Double curly braces and interpolation  v-bind  expression   (the latter is supported from 2.1.0 +). The filter should be […]

  • [PHP data structure] related logical operations of linked list

    Time:2021-10-20

    The operation of linked list is much more complex than that of sequential list (array). Because PHP has indeed solved many array operation problems for us, we can easily operate arrays without defining many logical operations for arrays. For example, in C, arrays are limited in length, which we won’t consider in PHP. If you […]