• A simple and practical algorithm binary search

Time：2021-1-21

catalog Algorithm overview Application Algorithm principle Algorithm implementation (C #) Practical application: searching boundary value by dichotomy Reference article Algorithm overview Binary search(English: binary search), also known asHalf search(English: half interval search) is a kind ofFinding specific elements in an ordered arrayThe search algorithm of the algorithm. Therefore, the premise of binary search is that […]

• Special use of SQL Server sum function

Time：2021-1-9

Use the sum function of SQL server to get the cumulative value Detailed explanationhttps://www.cnblogs.com/zhaoshujie/p/9594676.html   Personal examples DECLARE @Sale Table (– year month) total sales [Year] INT, [Month] INT, TotalSales Float ) insert INTO @Sale SELECT 2016, 1, 100 UNION ALL SELECT 2016, 2, 200 UNION ALL SELECT 2016, 3, 300 UNION ALL SELECT 2016, […]

• Segment tree of data structure

Time：2021-1-2

Segment tree What is a segment tree Line segment tree, similar to interval tree, is aComplete binary treeIt stores a line segment (a subarray in the array) in each node, which is mainly used to efficiently solve the dynamic query problem of continuous interval. Due to the characteristics of binary structure, it can basically keep […]

• Big data analysis: Lu Ban is the founder

Time：2021-1-2

1. The gate of full stack data is on sale After a period of waiting, the book can now be purchased “in stock” on major e-commerce platforms.At the end of this article, there are also purchase links of Jingdong, Dangdang and tmall! This book is applicable This book takes python, the hottest language in the […]

• Record a deployment of nuxt on docker

Time：2020-12-31

First of all, it must be because I’m not familiar with docker and nuxt Create a dockerfile file in the project root directory Enter the following FROM node:13.11.0 MAINTAINER wanna ENV NODE_ENV=production ENV HOST 0.0.0.0 RUN mkdir -p /app COPY . /app WORKDIR /app EXPOSE 3000 RUN npm config set registry https://registry.npm.taobao.org RUN npm install […]

• Slice – Notes on go expert programming

Time：2020-12-25

Slice Slice, also known as dynamic array, can be easily expanded and transferred by relying on array, which is more flexible than array in actual use. initialization Declare variables The variable values are all zero values. For slices, the zero value is nil Literal Empty slice means that the length is empty, not nil When […]

• Reddit is testing Ethereum based tokens that users can reward by contributing content

Time：2020-12-24

Technical editor: Zong en from sifou Office SegmentFault has he reported the official account number: SegmentFault Foreign media reported that reddit, a well-known online forum, has tested two token and beta based on Ethereum blockchain, and users who contribute content will be rewarded accordingly. As part of the newly launched community points program, moons and […]

• RMQ problem (from leetcode weekly)

Time：2020-12-23

1. Overview This blog is from leetcode. Took part in 198th weekly competition, the result is much worse than the previous weeks. But it doesn’t matter. I found out in time that I’m a vegetable. The road is long and the road is long! This blog is mainly about the thinking of the fourth question […]

• Project practice | user behavior log analysis system based on Flink

Time：2020-12-19

User behavior log analysis is a very common application scenario of real-time data processing, such as common PV, UV statistics. This paper will build a user behavior log analysis system from 0 to 1 based on Flink, including architecture design and code implementation. This article will share the data processing link that will completely present […]

• How to use slice size and length in go

Time：2020-12-13

To do a quick quiz – what does the following code output? vals := make([]int, 5) for i := 0; i < 5; i++ { vals = append(vals, i) } fmt.Println(vals) Run it on the Go Playground → https://play.golang.org/p/7PgUqBdZ6Z If you can guess[0 0 0 0 0 0 1 2 3 4]Then you are right. […]

• Topic series block 1

Time：2020-12-7

New topic of get Come and write a blog In fact, this is what I have said before… I didn’t listen to it carefully… Now I can understand Sequence block board questions – LOJ 6277 introduction to block 1 Link up- https://loj.ac/problem/6277 The problem surface is very simple – interval addition of series, single point […]

• Special topic – sequence block 2

Time：2020-12-5

Series block topic No.2 Block application and promotionIf you don’t know how to block, please learn “block 1” first->Click here to learn Put on question number – LOJ 6278 block entry 2Link up- https://loj.ac/problem/6278Question surface – give a sequence of numbers, 2 operations, interval addition and ask the number of elements less than a certain […]