From b547d76d47c69597409e482977bfb801a0835d92 Mon Sep 17 00:00:00 2001 From: CyC2018 Date: Sat, 7 Nov 2026 17:10:22 +0800 Subject: [PATCH] =?UTF-8?q?Update=2039.=20=E6=95=B0=E7=BB=84=E4=B8=AD?= =?UTF-8?q?=E5=87=BA=E7=8E=B0=E6=AC=A1=E6=95=B0=E8=B6=85=E8=BF=87=E4=B8=80?= =?UTF-8?q?=E5=8D=8A=E7=9A=84=E6=95=B0=E5=AD=97.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 说明力扣和牛客的版本都保证存在这样的数。 --- notes/39. 数组中出现次数超过一半的数字.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notes/39. 数组中出现次数超过一半的数字.md b/notes/39. 数组中出现次数超过一半的数字.md index 4c6b6d05..cc13fcf7 100644 --- a/notes/39. 数组中出现次数超过一半的数字.md +++ b/notes/39. 数组中出现次数超过一半的数字.md @@ -14,7 +14,7 @@ 例如 [3, 1, 3, 2, 3]:3 与 1 抵消,3 与 2 抵消,最后剩下的 3 就是答案。 -第二次遍历统计候选的出现次数,用于题目不保证存在这样的数时(牛客的版本不存在时返回 0);力扣的版本保证存在,可以省略。 +第二次遍历统计候选的出现次数,用于题目不保证存在这样的数时,例如要求不存在时返回 0;力扣和牛客的版本都保证存在,可以省略。 ```java public int inventoryManagement(int[] stock) {