摘要:
Given a binary tree, flatten it to a linked list in-place. For example, given the following tree: 1 / \ 2 5 / \ \ 3 4 6 The flattened tree should look 阅读全文
posted @ 2019-02-25 23:16
Roni_i
阅读(207)
评论(0)
推荐(0)
摘要:
22 23 24 25 26 27 28 1 21 44 45 46 47 48 29 2 20 43 58 59 60 49 30 3 19 42 57 64 61 50 31 4 18 41 56 63 62 51 32 5 17 40 55 54 53 52 33 6 16 39 38 37 阅读全文
posted @ 2019-02-25 22:41
Roni_i
阅读(549)
评论(0)
推荐(0)
摘要:
Find the kth largest element in an unsorted array. Note that it is the kth largest element in the sorted order, not the kth distinct element. Example 阅读全文
posted @ 2019-02-25 19:12
Roni_i
阅读(162)
评论(0)
推荐(0)
摘要:
Given a string and a string dictionary, find the longest string in the dictionary that can be formed by deleting some characters of the given string. 阅读全文
posted @ 2019-02-25 15:55
Roni_i
阅读(185)
评论(0)
推荐(0)
摘要:
Given a linked list, determine if it has a cycle in it. To represent a cycle in the given linked list, we use an integer pos which represents the posi 阅读全文
posted @ 2019-02-25 13:09
Roni_i
阅读(143)
评论(0)
推荐(0)

浙公网安备 33010602011771号