字符串转换整数(AtoI)
思路简述:分为两个模块处理出需要的有效数字累减法处理字符转大数,借鉴标准库 Integer.parseIntclass Solution { public int myAtoi(String s) { // 转换为字符数组 char[] chs = s.toChar
每一个平凡的日常都是连续的奇迹
思路简述:分为两个模块处理出需要的有效数字累减法处理字符转大数,借鉴标准库 Integer.parseIntclass Solution { public int myAtoi(String s) { // 转换为字符数组 char[] chs = s.toChar