摘要:
Problem statement: Given a positive integer n, find the number of non-negative integers less than or equal to n, whose binary representations do NOT c 阅读全文
posted @ 2017-05-29 09:00
蓝色地中海
阅读(815)
评论(0)
推荐(0)
摘要:
Problem statement: A zero-indexed array A consisting of N different integers is given. The array contains all integers in the range [0, N - 1]. Sets S 阅读全文
posted @ 2017-05-29 04:13
蓝色地中海
阅读(422)
评论(0)
推荐(0)
摘要:
Problem statement: Suppose Andy and Doris want to choose a restaurant for dinner, and they both have a list of favorite restaurants represented by str 阅读全文
posted @ 2017-05-29 03:51
蓝色地中海
阅读(699)
评论(0)
推荐(0)
摘要:
Problem statement: Given an m * n matrix M initialized with all 0's and several update operations. Operations are represented by a 2D array, and each 阅读全文
posted @ 2017-05-29 03:16
蓝色地中海
阅读(251)
评论(0)
推荐(0)
摘要:
Problem statement: Given a non-empty array containing only positive integers, find if the array can be partitioned into two subsets such that the sum 阅读全文
posted @ 2017-05-29 03:01
蓝色地中海
阅读(226)
评论(0)
推荐(0)
摘要:
Problem statement: Given an integer array of size n, find all elements that appear more than ⌊ n/3 ⌋ times. The algorithm should run in linear time an 阅读全文
posted @ 2017-05-29 02:50
蓝色地中海
阅读(108)
评论(0)
推荐(0)

浙公网安备 33010602011771号