mirror of
https://github.com/krahets/hello-algo.git
synced 2025-11-02 12:58:42 +08:00
Finetune Rust code.
This commit is contained in:
@ -116,6 +116,7 @@ impl ArrayDeque {
|
||||
}
|
||||
}
|
||||
|
||||
/* Driver Code */
|
||||
fn main() {
|
||||
/* 初始化双向队列 */
|
||||
let mut deque = ArrayDeque::new(10);
|
||||
|
||||
@ -82,6 +82,7 @@ impl ArrayQueue {
|
||||
}
|
||||
}
|
||||
|
||||
/* Driver Code */
|
||||
fn main() {
|
||||
/* 初始化队列 */
|
||||
let capacity = 10;
|
||||
|
||||
Reference in New Issue
Block a user