摘要: 题目: Write a program to check whether a given number is an ugly number. Ugly numbers are positive numbers whose prime factors only include 2, 3, 5. For 阅读全文
posted @ 2015-12-04 12:10 YRB 阅读(213) 评论(0) 推荐(0) 编辑
摘要: 题目: Given n nodes labeled from 0 to n - 1 and a list of undirected edges (each edge is a pair of nodes), write a function to check whether these edges 阅读全文
posted @ 2015-12-04 11:58 YRB 阅读(1908) 评论(0) 推荐(0) 编辑
摘要: 题目: Given an array of numbers nums, in which exactly two elements appear only once and all the other elements appear exactly twice. Find the two eleme 阅读全文
posted @ 2015-12-04 02:32 YRB 阅读(304) 评论(0) 推荐(0) 编辑