mirror of
https://github.com/labuladong/fucking-algorithm.git
synced 2025-07-05 03:36:39 +08:00
update function name
This commit is contained in:
@ -7879,7 +7879,7 @@ https://leetcode.cn/problems/ba-zi-fu-chuan-zhuan-huan-cheng-zheng-shu-lcof 的
|
|||||||
// by chatGPT (cpp)
|
// by chatGPT (cpp)
|
||||||
class Solution {
|
class Solution {
|
||||||
public:
|
public:
|
||||||
int myAtoi(string str) {
|
int strToInt(string str) {
|
||||||
int n = str.length();
|
int n = str.length();
|
||||||
int i = 0;
|
int i = 0;
|
||||||
// 记录正负号
|
// 记录正负号
|
||||||
|
Reference in New Issue
Block a user