mirror of
https://github.com/krahets/hello-algo.git
synced 2026-11-06 23:47:57 +08:00
fix: sync array, deque, and printing fixes across translations (#1973)
Synchronize the fixes from #1936, #1824, and #1961 across translated editions and normalize C# and Dart formatting. Move Java CI to Ubuntu 24.04 so its Java 11/17 checks can run.
This commit is contained in:
@@ -75,9 +75,9 @@ class LinkedListDeque {
|
||||
final int val;
|
||||
// 队列长度为 1 时, 头尾指向同一节点
|
||||
if (_queSize == 1) {
|
||||
val = _front!.val;
|
||||
_front = null;
|
||||
_rear = null;
|
||||
val = _front!.val;
|
||||
_front = null;
|
||||
_rear = null;
|
||||
}
|
||||
// 队首出队操作
|
||||
else if (isFront) {
|
||||
|
||||
Reference in New Issue
Block a user