摘要: 转换数字时,判断溢出必须使用小于或者大于,不能使用小于等于或者大于等于,以力扣第8题为例 int myAtoi(string s) { int i = 0; while(s[i] == ' ') i++; bool flag = false; if(s[i] == '+' || s[i] == '- 阅读全文
posted @ 2022-11-07 15:09 INnoVation-V2 阅读(36) 评论(0) 推荐(0)