摘要:
A group of friends went on holiday and sometimes lent each other money. For example, Alice paid for Bill's lunch for $10. Then later Chris gave Alice 阅读全文
posted @ 2018-12-21 20:52
yuxihong
阅读(146)
评论(0)
推荐(0)
摘要:
An image is represented by a binary matrix with 0 as a white pixel and 1 as a black pixel. The black pixels are connected, i.e., there is only one bla 阅读全文
posted @ 2018-12-21 20:03
yuxihong
阅读(154)
评论(0)
推荐(0)
摘要:
Design an algorithm to encode an N-ary tree into a binary tree and decode the binary tree to get the original N-ary tree. An N-ary tree is a rooted tr 阅读全文
posted @ 2018-12-21 19:35
yuxihong
阅读(232)
评论(0)
推荐(0)
摘要:
On a horizontal number line, we have gas stations at positions stations[0], stations[1], ..., stations[N-1], where N = stations.length. Now, we add K 阅读全文
posted @ 2018-12-21 16:05
yuxihong
阅读(128)
评论(0)
推荐(0)
摘要:
Given a non-empty binary search tree and a target value, find k values in the BST that are closest to the target. Note: Given target value is a floati 阅读全文
posted @ 2018-12-21 03:22
yuxihong
阅读(196)
评论(0)
推荐(0)
摘要:
Given an array consisting of n integers, find the contiguous subarray whose length is greater than or equal to k that has the maximum average value. A 阅读全文
posted @ 2018-12-21 01:17
yuxihong
阅读(232)
评论(0)
推荐(0)
浙公网安备 33010602011771号