## Binary tree (start of tree)

1, Tree structure Concept: Tree is a nonlinear data structure. It is a set with hierarchical relationship composed of n (n > = 0) finite nodes. It is called a tree because it looks like a tree It looks like an upside down tree, that is, it has roots facing up and leaves facing down. Tree featuUTF-8...

Posted by MSK7 on Fri, 08 Oct 2021 00:37:00 +0530

## Dynamic data structure foundation - linked list

Linked list is one of the most basic and important data structures. It is a real dynamic data structure. If you have the basis for understanding the linked list, it will be easier to learn more complex data structures, such as binary search tree, AVL tree, red black tree, B tree, etc. These areUTF-8...

Posted by mingo on Fri, 08 Oct 2021 02:30:11 +0530

## High performance timer 1 -- minimum heap implementation

High performance timer 1 - time stack In network programs, we usually deal with three kinds of events: network I/O events, signals and timing events. We can use I/O multiplexing system calls (select, poll and epoll) to deal with these three kinds of events uniformly. We usually use timers to deUTF-8...

Posted by devai on Fri, 08 Oct 2021 05:36:07 +0530

## [Leetcode Theme 1] Binary Tree Preorder, Median Order, Postorder, Hierarchical Traversal

Preface I have sorted out about 40 topics related to the lower binary tree traversal. All topics are recursion and iteration methods of prefix, middle and post order, and iteration methods of hierarchical traversal. Skilled in using the seven frameworks and modifying the logic above the framewUTF-8...

Posted by devil_online on Fri, 08 Oct 2021 08:17:57 +0530

## Swordfinger Offer day1-day3

Sword Finger Offer 09.Queue with two stacks Title: Implement a queue with two stacks, appendTail and deleteHead, which insert integers at the end of the queue and delete integers at the head of the queue. (If there are no elements in the queue, the deleteHead operation returns -1.) Ideas: InitiUTF-8...

Posted by bobby317 on Fri, 08 Oct 2021 22:07:52 +0530

## Data structure and algorithm practice: linked list

Basic theory of linked list The linked list belongs to the element of linear list. Different from the sequential list, although the linked list is logically continuous, its physical storage is not necessarily continuous. Each element of the linked list is also called a node. Each node is a spaUTF-8...

Posted by gchouchou on Sat, 09 Oct 2021 13:32:25 +0530

## Dynamic open point segment tree

Pre cheese Segment tree introduce In an ordinary line segment tree, we usually open 4 N 4N 4N array to avoid out of bounds. However, in some topics, space constraints do not allow us to do so. At this time, we need to use the dynamic open point line segment tree. Dynamic open point segment treeUTF-8...

Posted by Who27 on Sat, 09 Oct 2021 14:15:27 +0530

## Endless pallet --- min max tolerance and exclusion + knapsack on tree + fft optimization

Link: B-Endless Pallet_2021 Niuke national day training party day6 (nowcoder.com) A question of the extraordinary routine (serial routine...). First, it is troublesome to cover all the elements in the set, so consider min max inclusive exclusion transformation. Suppose a set S containing some nUTF-8...

Posted by TylerL on Sat, 09 Oct 2021 14:17:41 +0530

## [homework] [C language] Joseph Ring problem

Problem introduction Problem description A description of the Joeph problem is that n individuals numbered 1, 2,..., n sit around in a clockwise direction, and each holds a password (positive integer). At the beginning, select any positive integer as the upper limit value of M, start from the UTF-8...

Posted by hem.bhatt1787 on Sat, 09 Oct 2021 16:02:49 +0530

## D-OJ topic brushing diary: chain storage structure and operation of linear table topic No.: 455

Please define a linked list. You can "insert some elements before an element", "delete elements at a certain position", "find an element", "get elements at a certain position", "traverse and output all elements", "find the length of the linked list", etc. Enter some commands from the keyboard UTF-8...

Posted by gaspower on Sat, 09 Oct 2021 18:26:50 +0530