摘要:
Given an integer array, heapify it into a min-heap array. Given [3,2,1,4,5], return [1,2,3,4,5] or any legal heap array. 阅读全文
posted @ 2016-03-22 13:07
哥布林工程师
阅读(175)
评论(0)
推荐(0)
摘要:
The gray code is a binary numeral system where two successive values differ in only one bit. Given a non-negative integer n representing the total num 阅读全文
posted @ 2016-03-22 12:02
哥布林工程师
阅读(141)
评论(0)
推荐(0)
摘要:
Given n nodes labeled from 0 to n - 1 and a list ofundirected edges (each edge is a pair of nodes), write a function to check whether these edges make 阅读全文
posted @ 2016-03-22 11:44
哥布林工程师
阅读(158)
评论(0)
推荐(0)

浙公网安备 33010602011771号