摘要: 题目描述:Given an array of integers, find if the array contains any duplicates. Your function should return true if any value appears at least twice in th... 阅读全文
posted @ 2015-06-23 11:27 Sawyer Ford 阅读(153) 评论(0) 推荐(0) 编辑
摘要: 题目描述:Given a non-negative number represented as an array of digits, plus one to the number.The digits are stored such that the most significant digit ... 阅读全文
posted @ 2015-06-23 10:41 Sawyer Ford 阅读(178) 评论(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 in... 阅读全文
posted @ 2015-06-23 09:32 Sawyer Ford 阅读(232) 评论(0) 推荐(0) 编辑