[recent force buckle] word split + merge interval + linked list sorting + adjust the array order so that the odd number precedes the even number

Word splitting (medium) dynamic programming ”Whether leetcode "can be composed and decomposed into - whether" l "is stored in the dictionary and subsequent substrings can be composed when the step size is 1, etc; When the step size is 2, "le" is stored in the dictionary and subsequent substrings can be compose ...

Posted by shorty114 on Sun, 20 Feb 2022 04:15:26 +0100

Detailed explanation of Java collection framework

Java collection framework (III) Map interface Characteristics of Map implementation class Map: double column data, which stores the data of key value pairs, similar to the function of high school, y=f (x) Implementation class: HashMap: as the main implementation class of Map; Unsafe thread and high efficiency; null key s and value s ca ...

Posted by Robin M on Sat, 19 Feb 2022 20:11:49 +0100

Record of sword finger offer

Record of sword finger offer (1) (February 18, 2022) Write in the front: I haven't learned c + +. Refer to the problem-solving comments and learn while brushing the questions. data structure Print linked list from end to end describe Enter the head node of a linked list and return the value of each node in the order from the end to the h ...

Posted by ursvmg on Sat, 19 Feb 2022 02:34:01 +0100

Data structure - Chapter 3 linked list

List 1. Introduction 1.1. Abstract Data Types(ADTS) ADT definition: a set of objects together with a set of operations Abstract data types are mathematical abstractions; nowhere in an ADT‟s definition is there any mention of how the set of operations is implemented. A set of objects and a set of operations. Abstract data types are mathemat ...

Posted by ryanh_106 on Fri, 18 Feb 2022 07:31:24 +0100

Three questions: understand hash table and hash conflict

What is a hash table? Hash tables, also known as hash tables, are array based. This indirectly brings an advantage: the time complexity of search is O(1), and of course, its insertion time complexity is also O(1). There is also a disadvantage: the expansion cost is high after the array is created. There is a "mainstream" idea in hash ...

Posted by ghornet on Thu, 17 Feb 2022 20:40:36 +0100

Leetcode notes -- modification and construction of binary tree in binary tree chapter

Catalogue of series articles I Array type problem solving method 1: dichotomy II Array type problem solving method 2: Double finger needle method III Array type problem solving method 3: sliding window IV Array type problem solving method 4: simulation V The basic operation and classic topics of the linked list Vi Classic title of hash tab ...

Posted by crimaniak on Thu, 17 Feb 2022 05:15:27 +0100

Algorithm data structure -- linked list -- copy linked list with random pointer

1 topic analysis Link: 138. Copy the linked list with random pointer - LeetCode (LeetCode CN. Com) Give you a linked list with a length of n. each node contains an additional random pointer random, which can point to any node or empty node in the linked list. Construct a deep copy of this linked list. The deep copy should consist of exac ...

Posted by hpg4815 on Wed, 16 Feb 2022 13:43:11 +0100

Sequence traversal of binary tree

1. Sequence traversal Sequence traverses a binary tree. It is to traverse the binary tree layer by layer from left to right. In order to realize sequence traversal, we need to use an auxiliary data structure, namely queue. Queue first in first out conforms to the logic of layer by layer traversal, while stack first in last out is suitab ...

Posted by matt_4013 on Wed, 16 Feb 2022 11:09:54 +0100

Sequential list and linked list

1, Linear table Linear table: when data is stored, it is stored continuously according to logic and forms a linear structure (feature: all have the concept of index, and the elements with smaller index must be logically arranged before the elements with larger index) Linear list subset: sequential list, linked list, stack, queue, string ...

Posted by rsasalm on Tue, 15 Feb 2022 13:20:42 +0100

Discussion on data structure

All the code in this article is written in C + + 4 double linked list, circular linked list and static linked list 4.1 double linked list 4.1.1 definition of double linked list In the previous knowledge, we once said that because each data element in the single linked list is divided into two parts - data field and pointer field, the ...

Posted by rupertbj on Mon, 14 Feb 2022 17:35:08 +0100