From edae8af37aa3d1cc6c505bb388602e4bf70b2ac4 Mon Sep 17 00:00:00 2001 From: CyC2018 Date: Sat, 7 Nov 2026 17:10:25 +0800 Subject: [PATCH] =?UTF-8?q?Update=20Leetcode=20=E9=A2=98=E8=A7=A3=20-=20?= =?UTF-8?q?=E6=A0=88=E5=92=8C=E9=98=9F=E5=88=97.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 代码格式调整。 --- notes/Leetcode 题解 - 栈和队列.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notes/Leetcode 题解 - 栈和队列.md b/notes/Leetcode 题解 - 栈和队列.md index 1cd6e6ee..92eaf67e 100644 --- a/notes/Leetcode 题解 - 栈和队列.md +++ b/notes/Leetcode 题解 - 栈和队列.md @@ -242,7 +242,7 @@ public int[] nextGreaterElements(int[] nums) { while (!pre.isEmpty() && nums[pre.peek()] < num) { next[pre.pop()] = num; } - if (i < n){ + if (i < n) { pre.push(i); } }