摘要:
You can do this with the set of features introduced in Windows Phone 7.1 SDK (Mango). Following features will enable you to develop this application: 1- Background agents: You will need to run a piec... 阅读全文
posted @ 2012-09-05 16:27
紫红的泪
阅读(288)
评论(0)
推荐(0)
摘要:
题意是n=1时输出字符串1;n=2时,数上次字符串中的数值个数,因为上次字符串有1个1,所以输出11;n=3时,由于上次字符是11,有2个1,所以输出21;n=4时,由于上次字符串是21,有1个2和1个1,所以输出1211。依次类推,写个countAndSay(n)函数返回字符串。 string unguarded_convert(const string &say) ... 阅读全文
posted @ 2012-09-05 11:44
紫红的泪
阅读(9579)
评论(3)
推荐(1)
摘要:
题意是有个高度数组,就相当于隔板的高度,求数组中任意两隔板间盛水的最大量。隔板间的距离与较低隔板的高度乘积即为盛水的容量。 int maxArea(vector<int> &height) { int capability = 0; size_t left = 0, right = height.size() - 1; ... 阅读全文
posted @ 2012-09-05 11:00
紫红的泪
阅读(9919)
评论(0)
推荐(1)

浙公网安备 33010602011771号