摘要:
题目:一个整型数组里除了两个数字之外,其他的数字都出现了两次。请写程序找出这两个只出现一次的数字。 Python代码 Java代码 阅读全文
posted @ 2017-08-29 21:35
HitAnyKey
阅读(193)
评论(0)
推荐(0)
摘要:
1. 去掉首位空格 2. 判断首位是否有正负号 3. 判断各位是否是0~9,有其他字符直接返回当前结果 1 public class Solution { 2 public int atoi(String str) { 3 str = str.trim(); 4 int result = 0; 5 阅读全文
posted @ 2017-08-29 20:37
HitAnyKey
阅读(190)
评论(0)
推荐(0)

浙公网安备 33010602011771号