Skip to content

Commit

Permalink
stack: Add list stack
Browse files Browse the repository at this point in the history
  • Loading branch information
XuShaohua committed Aug 1, 2024
1 parent 33f4930 commit 255c02d
Show file tree
Hide file tree
Showing 17 changed files with 26 additions and 10 deletions.
24 changes: 16 additions & 8 deletions src/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,26 +12,34 @@
- [后缀数组 Suffix Array](array/suffix-array.md)
- [环形缓冲区 Circular Buffer](array/circular-buffer.md)
- [动态数组 Vector](vector/index.md)
- [动态数组的常用操作](vector/ops.md)
- [动态数组的常用操作](vector/adt.md)
- [标准库中 Vec 的实现](vector/impl-of-vec.md)
- [位图 BitSet](vector/bitset.md)
- [布隆过滤器 Bloom filter](vector/bloom-filter.md)
- [Hashed Array Tree](vector/hat.md)
- [链表 List](list/index.md)
- [单链表 Singly Linked List](list/single.md)
- [双链表 Doubly Linked List](list/double.md)
- [标准库中 List 的实现](list/impl-oflist.md)
- [链表的基本操作](list/adt.md)
- [单链表的实现](list/impl-singly-linked-list.md)
- [双链表的实现](list/impl-doubly-linked-list.md)
- [标准库中 List 的实现](list/std-impl.md)
- [Unrolled Linked List](list/unrolled-linked-list.md)
- [跳跃表 Skip List](list/skiplist/index.md)
- [跳跃表的基本操作](list/skiplist/adt.md)
- [跳跃表的实现](list/skiplist/impl.md)
- [跳跃表的应用](list/skiplist/applications.md)
- [双端队列 Deque](deque/index.md)
- [双端队列的基本操作](deque/adt.md)
- [双端队列的实现](deque/impl.md)
- [标准库中 VecDeque 的实现](deque/std-impl.md)
- [栈 Stack](stack/index.md)
- [栈的基本操作](stack/basic-ops.md)
- [栈的实现](stack/impl-of-stack.md)
- [栈的基本操作](stack/adt.md)
- [栈的实现](stack/impl.md)
- [栈的应用](stack/applications.md)
- [单调栈 Monotonic stack](stack/monotonic-stack.md)
- [队列 Queue](queue/index.md)
- [队列的基本操作](queue/adt.md)
- [队列的实现](queue/impl.md)
- [单调队列 Monotonic queue](queue/monotonic-queue.md)
- [双端队列 Deque](deque/index.md)
- [标准库中 VecDeque 的实现](deque/impl-of-vec-deque.md)
- [哈稀表 Hash Table](hash-table/index.md)
- [LinkedHashMap](hash-table/linked-hash-map.md)
- [标准库中 HashMap 的实现](hash-table/impl-of-hash-map.md)
Expand Down
1 change: 1 addition & 0 deletions src/deque/adt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# 双端队列的基本操作
1 change: 1 addition & 0 deletions src/deque/impl.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# 双端队列的实现
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
// Use of this source is governed by General Public License that can be found
// in the LICENSE file.

pub fn answer_queries1(nums: Vec<i32>, queries: Vec<i32>) -> Vec<i32> {
pub fn answer_queries1(_nums: Vec<i32>, _queries: Vec<i32>) -> Vec<i32> {
todo!();
}

pub type SolutionFn = fn(Vec<i32>, Vec<i32>) -> Vec<i32>;

fn check_solution(func: SolutionFn) {
fn check_solution(_func: SolutionFn) {
todo!();
}

Expand Down
1 change: 1 addition & 0 deletions src/list/adt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# 链表的基本操作
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions src/list/skiplist/adt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# 跳跃表的基本操作
1 change: 1 addition & 0 deletions src/list/skiplist/applications.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# 跳跃表的应用
1 change: 1 addition & 0 deletions src/list/skiplist/impl.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# 跳跃表的实现
File renamed without changes.
1 change: 1 addition & 0 deletions src/queue/adt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# 队列的基本操作
1 change: 1 addition & 0 deletions src/queue/impl.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# 队列的实现
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 255c02d

Please sign in to comment.