From bdaf6eedc953d8220bfc42245aac24fac2fc84d4 Mon Sep 17 00:00:00 2001 From: CyC2018 Date: Sat, 7 Nov 2026 17:10:23 +0800 Subject: [PATCH] =?UTF-8?q?Update=2067.=20=E6=8A=8A=E5=AD=97=E7=AC=A6?= =?UTF-8?q?=E4=B8=B2=E8=BD=AC=E6=8D=A2=E6=88=90=E6=95=B4=E6=95=B0.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 调整对牛客同名题目的说明。 --- notes/67. 把字符串转换成整数.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notes/67. 把字符串转换成整数.md b/notes/67. 把字符串转换成整数.md index f829de85..50c1e462 100644 --- a/notes/67. 把字符串转换成整数.md +++ b/notes/67. 把字符串转换成整数.md @@ -6,7 +6,7 @@ ## 题目描述 -实现 atoi,将一个字符串转换成一个整数,要求不能使用字符串转换整数的库函数:跳过开头的空格,读入可选的正负号,再读入尽可能多的数字,遇到非数字字符就停止;没有读到数字时返回 0,超出 int 范围时返回 Integer.MAX_VALUE 或 Integer.MIN_VALUE。牛客的版本要求整个字符串都是合法数值,否则返回 0。 +实现 atoi,将一个字符串转换成一个整数,要求不能使用字符串转换整数的库函数:跳过开头的空格,读入可选的正负号,再读入尽可能多的数字,遇到非数字字符就停止;没有读到数字时返回 0,超出 int 范围时返回 Integer.MAX_VALUE 或 Integer.MIN_VALUE。牛客上还有一道“把字符串转换成整数”,要求整个字符串都是合法数值,否则返回 0。 ```text Input: