摘要: (单独把一个东西说清楚,然后再说清楚另一个,这样,它们的区别自然就出来了,混在一起说,则很难说清楚) ==操作符专门用来比较两个变量的值是否相等,也就是用于比较变量所对应的内存中所存储的数值是否相同,要比较两个基本类型的数据或两个引用变量是否相等,只能用==操作符。 如果一个变量指向的数据是对象类型 阅读全文
posted @ 2017-08-08 20:09 这个手杀不太0 阅读(421) 评论(0) 推荐(0) 编辑
摘要: Roman to Integer Given a roman numeral, convert it to an integer. Input is guaranteed to be within the range from 1 to 3999. 阅读全文
posted @ 2017-08-08 19:39 这个手杀不太0 阅读(121) 评论(0) 推荐(0) 编辑
摘要: Determine whether an integer is a palindrome. Do this without extra space. click to show spoilers. Some hints: Could negative integers be palindromes? 阅读全文
posted @ 2017-08-07 23:28 这个手杀不太0 阅读(136) 评论(8) 推荐(0) 编辑
摘要: 7. Reverse Integer Reverse digits of an integer. Example1: x = 123, return 321 Example2: x = -123, return -321 If the integer's last digit is 0, what 阅读全文
posted @ 2017-08-07 22:38 这个手杀不太0 阅读(412) 评论(4) 推荐(0) 编辑