update function name

This commit is contained in:
aiwandianao
2023-04-02 14:57:41 +08:00
committed by labuladong
parent 5298aeebef
commit ae286d8eaf

View File

@ -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;
// 记录正负号 // 记录正负号