【文件属性】:
文件名称:leetcode小白刷题-String-to-Integer-atoi-:来自https://leetcode.com/problems/st
文件大小:4KB
文件格式:ZIP
更新时间:2021-06-30 05:23:49
系统开源
leetcode小白刷题字符串到整数
(atoi)
示例
1:
Input:
"
42
"
Output:
42
示例
2:
Input:
"
-42
"
Output:
-
42
Explanation:
The
first
non-whitespace
character
is
'
-
'
,
which
is
the
minus
sign.
Then
take
as
many
numerical
digits
as
possible,
which
gets
42
.
示例
3:
Input:
"
4193
with
words
"
Output:
4193
Explanation:
Conversion
stops
at
digit
'
3
'
as
the
next
character
is
not
a
numerical
digit.
示例
4:
Input:
"
words
and
987
"
Output:
0
Explanation:
The
first
non-whitespace
character
is
'
w
'
,
which
is
not
a
numeric
【文件预览】:
String-to-Integer-atoi--master
----LICENSE(1KB)
----README.md(8KB)