LeetCode array brush question 1

704. Binary search Title: Topic analysis: Give an array and target value, find the location of the target value, and return the array subscript of the location. If there is no target value in the array, return - 1 The moment I see the problem, I think I can directly a for loop. I can finish writing and finish work directly. I can see ...

Added by The Merg on Sat, 08 Jan 2022 08:02:19 +0200

PCL obtains pcd point cloud with intensity information

1, Foreword 1. Overview    pcl::PointXYZI in PCL is a data structure used to store xyz coordinates and intensity information. When CloudCompare is used to convert the point cloud in las format into pcd format, and then PCL is used to read the point cloud in pcd format, the intensity information can not be obtained (the intensity ...

Added by Sweeney on Sat, 08 Jan 2022 04:22:45 +0200

Data structure - sorting

Java sorting catalogue Java sorting preface 1, Simple sort 1. Bubble sorting 2. Select Sorting 3. Insert sort 2, Advanced sorting 1. Hill sort 2. Merge and sort 3. Quick sort 3, Stability of sorting preface Sorting is a very common requirement. It provides some data elements and sorts them according to certain rules. The sorting ...

Added by saviiour on Fri, 07 Jan 2022 05:15:55 +0200

Linear table of [data structure and algorithm] - simple implementation of sequential table java code

preface This article is equivalent to a note arrangement of my previous study of data structure. You are welcome to comment and point out the shortcomings, which will be updated in the future. catalogue 1, Definition of linear table 2, Logical characteristics of linear table 3, One of the storage structures of linear table -- sequential s ...

Added by ThermalSloth on Fri, 07 Jan 2022 03:23:32 +0200

Use and example records of parallel search set (P1536 & P1551)

1, Overview of parallel search set 1. Related concepts (1) Introduction of union search set problem There are several sets, {a},{b},{c},{d},{e} Design two methods Judge whether two elements are in the same set, issameset(a, b)Merge the set of elements a and B into union(a, b) Solution Identify a representative element for each c ...

Added by happs on Thu, 06 Jan 2022 16:24:05 +0200

Sudden whim to solve the permutation and combination problem in high school with C

Title: there are 1, 2, 3 and 4 numbers. How many different three digits can be formed without repeated numbers? How much is it? A very simple high school topic is also well realized by program. Don't say much, just go to the code. #include<stdio.h> int main() { int i,j,k; printf("\n"); for(i=1;i<5;i++) { // The followin ...

Added by johncox on Thu, 06 Jan 2022 15:12:01 +0200

Lesson 1: priority queue (heap)

catalogue 1, Related concepts of heap 1.1 reactor 1.2 subscript relationship 1.3 classification 2, Manually implement heap 2.1 establishment of large root pile 2.2 adding data 2.3 pop up the top data 2.4 viewing top data 2.5 topK problem 2.6 heap sorting 2.7 finding and minimum K-pair numbers 3, Priority queue in Java 1, Relate ...

Added by jimthunderbird on Thu, 06 Jan 2022 13:58:41 +0200

Rehabilitation type force buckle brushing notes d3

catalogue Small diary written in front Code part Question 1576 Question 26 Question 27 Question 5 java small knowledge part Question 1576 Question 27 Question 5 Small diary written in front Changed the c-plane and power supply for the notebook. Finally, it can support me to press the n key smoothly and use the computer without plug ...

Added by joshblue on Thu, 06 Jan 2022 13:38:12 +0200

python object oriented

catalogue Define class Creating and working with objects Object oriented pillar @property decorator __ slots__ magic Static methods and class methods Relationships between classes Inheritance and polymorphism Define class In Python, you can use the class keyword to define a class, and then define methods in the class through the prev ...

Added by gofeddy on Thu, 06 Jan 2022 13:31:14 +0200

Detailed explanation of string Hash 2D Hash

String hash method character string h a s h hash hash is to map a string into a nonnegative integer. (the probability of simultaneous collision is very low) Design a large prime number ...

Added by dominant on Thu, 06 Jan 2022 10:29:05 +0200