摘要: Problem I: Roman to IntegerGiven a roman numeral, convert it to an integer.Input is guaranteed to be within the range from 1 to 3999.解决思路1.将字符和整数存入map... 阅读全文
posted @ 2015-08-19 19:48 Chapter 阅读(253) 评论(0) 推荐(0) 编辑
摘要: Problem IGiven an array of integers, every element appearstwiceexcept for one. Find that single one.解决思路全部的元素进行异或,输出结果。ProblemIIGiven an array of inte... 阅读全文
posted @ 2015-08-19 17:15 Chapter 阅读(143) 评论(0) 推荐(0) 编辑
摘要: Problem IWrite a program to check whether a given number is an ugly number.Ugly numbers are positive numbers whose prime factors only include2, 3, 5. ... 阅读全文
posted @ 2015-08-19 16:03 Chapter 阅读(143) 评论(0) 推荐(0) 编辑