摘要:
Given an array of integers, every element appears three times except for one. Find that single one. Note:Your algorithm should have a linear runtime c 阅读全文
posted @ 2016-05-15 21:47
米开朗菠萝
阅读(163)
评论(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 elements 阅读全文
posted @ 2016-05-15 20:28
米开朗菠萝
阅读(228)
评论(0)
推荐(0)
摘要:
Given an array of integers, every element appears twice except for one. Find that single one. Note:Your algorithm should have a linear runtime complex 阅读全文
posted @ 2016-05-15 19:58
米开朗菠萝
阅读(146)
评论(0)
推荐(0)
摘要:
Given a non negative integer number num. For every numbers i in the range 0 ≤ i ≤ num calculate the number of 1's in their binary representation and r 阅读全文
posted @ 2016-05-15 19:47
米开朗菠萝
阅读(209)
评论(0)
推荐(0)
摘要:
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 exa 阅读全文
posted @ 2016-05-15 16:20
米开朗菠萝
阅读(189)
评论(0)
推荐(0)