摘要:
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号