Data structure - stack
preface
This paper is based on C language. The following is the main content of this article, and the following cases can be used for reference
1, Concept and structure of stack
Stack: a special linear table that allows insertion and deletion of elements only at a fixed end. One end for data insertion and deletion is called the to ...
Added by jamal dakak on Sat, 25 Dec 2021 23:17:00 +0200
Data structure experiment 4 implementation of basic operations of stack and queue
Experimental purpose
Master the abstract data types of stack and queue, and be able to correctly select them in corresponding application problems, Master the implementation methods of stack and queue (sequential and chained), the implementation algorithms of two storage structures and basic operations, pay attention to the judgment condition ...
Added by homer09001 on Mon, 20 Dec 2021 22:44:07 +0200
[data structure] we must win this stack
π Blog home page: Unlucky salad π₯ π Welcome to pay attention π comment π follow β οΈ π Stick together and grow together! βοΈ If there are mistakes in the article or you have better ideas, you can comment and point out, thank you!
0. There are words ahead
Learn the order of a data structure: Logical structure - storage stru ...
Added by youknowho on Thu, 16 Dec 2021 06:55:57 +0200
Linear table -- a preliminary understanding of stack
π Understand sequential stack and chain stack
In the world of data structure, stack, like sequential list and linked list (linked storage structure), is a linear storage structure. Stack is a linear table (logical structure concept) with limited operation. The particularity of its operation lies in its "last in, first out" chara ...
Added by badal on Sun, 05 Dec 2021 23:56:19 +0200
leetcode valid parentheses and circular queues
1. Valid brackets
This topic comes from leetcode valid parentheses
1.1 Title Description
Tips
1.1.1 interface function
bool isValid(char * s){
}
1.2 general framework
Although the array can also solve the problem, it is not very good. Some problems will appear later. We try to use the stack to solve the problem
Directly using ...
Added by N350CA on Mon, 22 Nov 2021 04:28:16 +0200
LeetCode897 incremental sequential search tree & sword finger OfferII 052 flattening binary search tree
subject
Problem solving
The increasing order of binary search tree is the order of middle order traversal.
LeetCode426 transforms binary search tree into sorted two-way linked list & sword finger Offer 36 binary search tree and two-way linked list The simple version of question 426 needs to construct a two-way circular linked list ...
Added by RobinTibbs on Thu, 04 Nov 2021 12:19:32 +0200
Initial knowledge and basic OJ exercises of stack and queue
β this article only uses two common implementation methods - dynamic array stack and chain queue. If you want to see more implementation methods of queue and stack, you can see the section on queue and stack in my following article: Figure 5 implementation of five interfacesοΌ ββ the queue and stack implementations in this articl ...
Added by deezerd on Sun, 31 Oct 2021 21:37:21 +0200
Stack and queue interview
Written earlier, this article is some questions about stack and queue asked by the interviewer during my interview. The answer to the question is summarized by myself. There may be some deviations. Please correct it
If there are more problems in the follow-up, we will continue to add
1. What linear tables do you know? What about nonlinear ...
Added by kwdelre on Tue, 21 Sep 2021 06:16:07 +0300