[Python 100 day learning notes] day5 construct program logic

Construct program logic After learning the previous chapters, I think it is necessary to take you to do some exercises here to consolidate the previous knowledge. Although what we have learned so far is only the tip of the iceberg of python, these contents are enough for us to build the logic in the program. For beginners of programming langua ...

Added by wake2010 on Tue, 30 Nov 2021 16:18:35 +0200

STL common algorithms

summary: The algorithm is mainly composed of header files < algorithm < functional > < numeric >, which are non member functions< algorithm > is the largest of all STL header files, covering comparison, exchange, search, traversal, copy, modification, etc< numeric > is very small and only includes a few template ...

Added by screamer141 on Tue, 30 Nov 2021 14:53:09 +0200

06_JavaScript data structure and algorithm one-way linked list

JavaScript data structure and algorithm (VI) one way linked list Cognitive linked list Linked lists and arrays Like arrays, linked lists can be used to store a series of elements, but the implementation mechanism of linked lists and arrays is completely different. array Storing multiple elements, arrays (or lists) are probably the most co ...

Added by sifix on Tue, 30 Nov 2021 03:31:37 +0200

[titanium platinum data session] 269th weekly match of Li Kou (2029 / 4292)

I haven't played the weekly game for a long time. I tried it this week. My record is endless. The last question was almost done by checking the collection 1, Question 1: 5938. Find the target subscript after array sorting 1. Topic introduction Given two strings S and p, find the substrings of all ectopic words of p in s, and return t ...

Added by magicmoose on Mon, 29 Nov 2021 00:57:30 +0200

Data structures and algorithms sparse arrays and queues

title: data structure and algorithm (I) sparse array and queue date: 2021-11-26 21:08:27 tags: data structure and algorithm 1. Relationship between data structure and algorithm (1) Data structure is a subject that studies the way of organizing data. With programming language, there will be data structure. Learning data structure well can writ ...

Added by hellangel on Sun, 28 Nov 2021 22:32:46 +0200

Basic functions of single linked list (add, delete, change, query, find length and sort)

Linked list is a common data structure. It is different from common arrays. When using an array, you must first specify the number of elements contained in the array, that is, the length of the array. However, if the elements added to the array exceed the size of the array, you cannot save all the contents.    the number of elements ...

Added by Aptana on Sun, 28 Nov 2021 19:08:06 +0200

Java data structure Day3 -- implementing ring queue with array (reusability)

The update is late. The real-time data warehouse has started in the past two days. There is no need to mention the amount of code and steal time. But there is no leisure at all, but it is impossible to challenge with youth Ring queue After reading Day2, the students must have found that the queue implemented by this array seems to have no r ...

Added by jlaperch on Sat, 27 Nov 2021 05:14:37 +0200

Linked list diagram (bidirectional, circular linked list + addition and deletion of linked list)

1. Two way linked list Bidirectional linked list is that each node has two pointer fields, pointing to the front and rear nodes of the node respectively. Therefore, the data reading of bidirectional linked list is bidirectional, which is more convenient for data modification.   Construction of bidirectional linked list: #include<io ...

Added by paddyhaig on Fri, 26 Nov 2021 17:18:31 +0200

Array double pointer and array window

0. Content description Recently, when I was writing some small algorithms, I felt that my algorithm was too bloated. It happened that Datawhale organized the course of data structure and algorithm in the new team learning. So I joined. Thank Datawhale again~~ First of all, I would like to share with you two learning materials that I feel bett ...

Added by hurricane on Thu, 25 Nov 2021 21:33:55 +0200

Data structure and algorithm learning note tree

Data structure and algorithm learning notes (7) tree Previous review 1, Definition of tree and binary tree 1. Trees Definition of tree Recursive nested definition Other representations of trees It's a bit like this markdown syntax: AB E KL F C G D H M IJ Basic terms of trees ...

Added by caedo on Thu, 25 Nov 2021 00:59:12 +0200