This commit is contained in:
krahets
2026-08-18 03:09:22 +08:00
parent d8c34d88b5
commit ba5285949b
108 changed files with 237 additions and 229 deletions
+2 -2
View File
@@ -185,7 +185,7 @@ comments: true
/* 要素をデキュー */
// 配列であるため、removeFirst の計算量は O(n)
let pool = queue.removeFirst()
let pop = queue.removeFirst()
/* キューの長さを取得 */
let size = queue.count
@@ -254,7 +254,7 @@ comments: true
```dart title="queue.dart"
/* キューを初期化 */
// Dart では、キュークラス Qeque は双方向キューであり、キューとしても使用できる
// Dart では、キュークラス Queue は双方向キューであり、キューとしても使用できる
Queue<int> queue = Queue();
/* 要素をエンキュー */