Explanation of 03-15 in Chapter 2 of sword finger offer

Chapter II basic knowledge required for interview 1. Array Sword finger Offer 03 Duplicate number in array Find duplicate numbers in the array. All numbers in an array num of length n are in the range of 0 ~ n-1. Some numbers in the array are repeated, but I don't know how many numbers are repeated, or how many times each number is repeated. ...

Added by SpinCode on Wed, 09 Feb 2022 22:51:48 +0200

DeepSort multi-target tracking algorithm

preface Thesis Name: (ICIP2017) single simple online and realtime tracking with a deep association metric Thesis address: https://arxiv.org/abs/1703.07402 Open source address: https://github.com/nwojke/deep_sort catalogue 1, Common multi-target tracking workflow 2, Prerequisite knowledge: Sort multi-target tracking 3, DeepSort multi-ta ...

Added by vB3Dev.Com on Wed, 09 Feb 2022 16:54:57 +0200

Algorithm problem of XOR operation

First give two algorithm questions for the interview. One number has an odd number and the other number has an even number. It is required to find this number, and the time complexity is O(n) and the space complexity is O(1)The two kinds of numbers appear odd times and the other numbers appear even times. It is required to find this number, an ...

Added by apollyon on Wed, 09 Feb 2022 14:39:42 +0200

[summary] summary of JC training from August 2, 2021 to August 18, 2021

Update 2021.8.2-2021.8.18 wrote this blog to commemorate the 2021 summer JC training 2021.9.3-2021.9.8 modification 2022.2.9 the part of bipartite graph is improved 2021.8.2(dp) 1. Milking 01 simple question of backpack 2.Gangsters First sort the structure array from small to large according to the time point, and then ...

Added by chaddsuk on Wed, 09 Feb 2022 11:42:05 +0200

AVL tree introduction and detailed explanation of each operation

AVL tree introduction and detailed explanation of each operation Introduction to AVL treeImplementation of AVL tree operation set rotate RR insertion (left single rotation)LL insertion (right single rotation)RL insertion (right left double rotation)LR insertion (left and right double rotation) insertdeleteergodic Complete code Code ...

Added by slimsam1 on Wed, 09 Feb 2022 09:01:51 +0200

It's enough for beginners to learn Java arrays

1, Overview of arrays 1. Understanding of arrays: An array is a collection of several data of the same type arranged in a certain order, named with a name, and managed uniformly by numbering. 2. Array related concepts: Array name element subscript, subscript and index length of array: number of elements 3. Characteristics of array: Arrays ...

Added by BEFOR on Wed, 09 Feb 2022 02:21:18 +0200

C + + "STL vector Learning Notes"

Introduction: The vector class is called the vector class. It implements a dynamic array, which is used for an array of objects with variable number of elements. The elements in the order container are sorted in strict linear order. The corresponding element can be accessed through the position of the element in the sequence. When expanding ...

Added by bluntster on Wed, 09 Feb 2022 01:16:10 +0200

Analysis of recursion, recursion and dynamic programming

Concept introduction and understanding Recurrence: deduce the following results from the previous calculation results. Mathematical language description can deduce f(n) from f(0),f(1)... f(n-1), so recurrence formula is the key. Recursion: push forward from the back, start with the result, and push backward. The mathematical language descr ...

Added by kol090 on Tue, 08 Feb 2022 21:32:00 +0200

2021 12th Lanqiao cup provincial tournament group B C/C++

2021 12th Lanqiao cup provincial tournament group B C/C++ preface: Recall that I participated in the blue bridge cup for the first time last year. At that time, I was a freshman and full of enthusiasm. Although I only learned c language and had only a little contact with c + +, I signed up for the competition at the suggestion of my senio ...

Added by horseatingweeds on Tue, 08 Feb 2022 20:28:07 +0200

ML self realization / KNN / classification / unauthorized duplication

brief introduction KNN(K Nearest Neighbors) It can be used for classification problems and regression problemsClassification problem and regression problem are divided into whether to take weight or not give an example introduce The existing categories are red triangles and blue squaresWhat type should the newly entered green dot belong t ...

Added by mkosmosports on Tue, 08 Feb 2022 19:29:37 +0200