12 2017 档案

摘要:题目: Given an array of 2n integers, your task is to group these integers into n pairs of integer, say (a1, b1), (a2, b2), ..., (an, bn) which makes sum 阅读全文
posted @ 2017-12-20 16:53 Derek丶D 阅读(160) 评论(0) 推荐(0) 编辑
摘要:题目: A self-dividing number is a number that is divisible by every digit it contains. For example, 128 is a self-dividing number because 128 % 1 == 0,  阅读全文
posted @ 2017-12-17 15:22 Derek丶D 阅读(113) 评论(0) 推荐(0) 编辑
摘要:题目: Initially, there is a Robot at position (0, 0). Given a sequence of its moves, judge if this robot makes a circle, which means it moves back to th 阅读全文
posted @ 2017-12-15 18:01 Derek丶D 阅读(111) 评论(0) 推荐(0) 编辑
摘要:题目: The Hamming distance between two integers is the number of positions at which the corresponding bits are different. Given two integers x and y, ca 阅读全文
posted @ 2017-12-14 21:41 Derek丶D 阅读(139) 评论(0) 推荐(0) 编辑