Ten classical sorting algorithms

introduction: Sorting algorithm is one of the most basic algorithms in data structure and algorithm. Here are ten classic sorting algorithms to explain. Taoist friends who don't know can come here to sweep away their blindness. From "rookie tutorial". explain    sorting algorithms can be divided into internal sorting ...

Added by Cloud9247 on Fri, 18 Feb 2022 00:03:49 +0200

Implementation class of Map interface - HashMap

🧭 Implementation class of Map interface HashMap 🚀HashMap HashMap is an implementation class of Map interface, which is displayed in blog Java Map interface We have used HashMap to summarize the commonly used methods. HashMap is the most frequently used implementation class of Map interface.HashMap stores data in the form of key value ...

Added by cl77 on Thu, 17 Feb 2022 22:23:12 +0200

[daily practice of Android spring moves] LeetCode Hot 10 questions

overview LeetCode Hot: realize Trie (prefix tree), the K largest element in the array, the largest square, flip binary tree, palindrome linked list, the nearest common ancestor of binary tree, the product of arrays other than itself, the maximum value of sliding window, search two-dimensional matrix II and complete square number LeetCode ...

Added by ganlal on Thu, 17 Feb 2022 17:18:05 +0200

28 | heap and heap sorting: why is heap sorting not as fast as fast sorting?

How to understand "heap" Heap sorting is an in-situ sorting algorithm with time complexity of O(nlogn) There are two characteristics of the heap: A complete binary treeEach node in the heap must be greater than or equal to (or less than or equal to) the value of its left and right child nodes; The heap whose value of each node is g ...

Added by Cogen on Thu, 17 Feb 2022 12:41:55 +0200

Data structure --- hash structure implemented by c language array

hash address The hash address is a logical address, not an actual address. The hash address is obtained through the hash function hash function The hash function is determined by yourself. You can choose any function. Suppose you use the array to store the hash data, use the subscript to describe the position in the array, and cons ...

Added by morphy on Thu, 17 Feb 2022 05:01:42 +0200

Detailed binary tree classical basic algorithm

Binary tree is a common data structure in our daily learning. During the interview and study, we will inevitably encounter some algorithm problems related to binary tree. Today, I brought you some classic binary tree basic algorithm problems. Let's have a look! catalogue 1. Check whether the two trees are the same â‘  Title Description â‘¡ tr ...

Added by swissmant on Wed, 16 Feb 2022 19:50:30 +0200

list object de duplication and de duplication according to object attributes. Big guy is awesome. Record it

Eight methods of List collection object de duplication and attribute de duplication - Fage talk Java - blog Garden 1, Outline of this paper In this article, I want to write about eight methods of de duplication of List set elements. In fact, through flexible application, arrangement and combination, there are not necessarily eight, but there ...

Added by ronthu on Wed, 16 Feb 2022 09:35:30 +0200

[data organization and algorithm] in-depth analysis of the solution idea and algorithm example of "verifying binary search tree"

1, Title Requirements Give you the root node of a binary tree, root, and judge whether it is an effective binary search tree.A valid binary search tree is defined as follows: The left subtree of a node contains only the number less than the current node. The right subtree of a node only contains a number greater than the current node. ...

Added by PhantomCode on Wed, 16 Feb 2022 08:32:07 +0200

Data structure (C language version) -- string, array and generalized table notes

1. String â‘ . Definition of string String -- a finite sequence composed of zero or more characters. It is a special linear table. Its data element is one character, that is, a linear table with limited content. Substring: A subsequence of any consecutive characters in a string Main string: String containing substring Character pos ...

Added by guzman-el-bueno on Wed, 16 Feb 2022 07:01:56 +0200

Data structure diagram (storage structure)

Definitions and basic terms of drawings   Figure: G=(V, E)    Grapg = (Vertex, Edge)    V: finite non empty set of vertices (data elements);   E: finite set of edges Undirected graph: each edge is undirected Directed graph: each edge has a direction Complete graph: any two points have an edge connected Sparse gr ...

Added by stormszero on Wed, 16 Feb 2022 06:47:56 +0200