摘要:
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 + ... 阅读全文
摘要:
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... 阅读全文
摘要:
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进... 阅读全文
摘要:
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... 阅读全文