摘要:
Given a non-negative integernum, repeatedly add all its digits until the result has only one digit.For example:Givennum = 38, the process is like:3 + ... 阅读全文
posted @ 2015-09-11 07:44
Hygeia
阅读(104)
评论(0)
推荐(0)
摘要:
Given two binary strings, return their sum (also a binary string).For example,a="11"b="1"Return"100". 1 public String addBinary(String a, String b... 阅读全文
posted @ 2015-09-11 07:39
Hygeia
阅读(156)
评论(0)
推荐(0)
摘要:
Given a column title as appear in an Excel sheet, return its corresponding column number.For example:A -> 1B -> 2C -> 3…Z -> 26AA -> 27AB -> 28[分析]26进... 阅读全文
posted @ 2015-09-11 05:57
Hygeia
阅读(131)
评论(0)
推荐(0)
摘要:
Write an algorithm to determine if a number is "happy".A happy number is a number defined by the following process: Starting with any positive integer... 阅读全文
posted @ 2015-09-11 05:27
Hygeia
阅读(118)
评论(0)
推荐(0)

浙公网安备 33010602011771号