题目链接:点击打开链接题意比較明显,不赘述。删除时能够把i-1转到根,把i+1转到根下则i点就在
根右子树 的左子树,且仅仅有i这一个 点#include#include#include#includeusing namespace std;#define
N 300500#define inf 1...
分类:
其他好文 时间:
2014-06-03 11:29:26
阅读次数:
277
As an umbrella holder that allows you to create
a better child to keep them in your arms for comfort and safety without having
to hold an umbrella in ...
分类:
数据库 时间:
2014-06-03 08:08:02
阅读次数:
478
原题地址:https://oj.leetcode.com/problems/candy/题意:There
areNchildren standing in a line. Each child is assigned a rating value.You are
giving candies to ...
分类:
编程语言 时间:
2014-05-31 21:58:12
阅读次数:
410
In SCCM 2012 R2, you can use following
class.Use SMS_CombinedDeviceResources.EPAntivirusSignatureLastVersion in
WMIE.g.select SMS_R_SYSTEM.ResourceID,...
分类:
其他好文 时间:
2014-05-31 17:10:38
阅读次数:
241
(Sorry for that click-bait heading. Couldn’t
resist ;-) )We’re on a mission. To teach you SQL. But mostly, we want to teach
you how to appreciate SQL....
分类:
数据库 时间:
2014-05-31 17:00:45
阅读次数:
1397
原题地址:https://oj.leetcode.com/problems/gas-station/题意:There
areNgas stations along a circular route, where the amount of gas at
stationiisgas[i].You ha...
分类:
编程语言 时间:
2014-05-31 16:58:18
阅读次数:
259
http://0pointer.de/blog/projects/systemd.htmlRethinking PID 1If you are well
connected or good at reading between the lines you might already know wha...
分类:
其他好文 时间:
2014-05-31 11:29:28
阅读次数:
286
1 2 13 25 26 You can count on this being a dark
29 background with light text on top, but should try to make no 30 other
assumptions ...
分类:
移动开发 时间:
2014-05-31 06:12:59
阅读次数:
492
Say you have an array for which theithelement
is the price of a given stock on dayi.Design an algorithm to find the maximum
profit. You may complete a...
分类:
其他好文 时间:
2014-05-30 15:00:54
阅读次数:
335
Given a triangle, find the minimum path sum
from top to bottom. Each step you may move to adjacent numbers on the row
below.For example, given the fol...
分类:
其他好文 时间:
2014-05-30 14:59:37
阅读次数:
241