摘要:
这道题竟然被我做出来了,不过还是参考别人的,附代码,其中result[i]的意思是从i元素到最后需要的最小切割个数。哈哈class Solution {public: typedef vector> Sdata; int minCut(string s) { int len = s... 阅读全文
posted @ 2015-04-18 17:24
xgcode
阅读(113)
评论(0)
推荐(0)
摘要:
libevent源代码之最小堆的实现libevent 中通过结构体min_heap_t实现最小堆,该结构体的声明如下:typedef struct min_heap{ struct event** p; unsigned n, a;} min_heap_t;其中p是指向指针的指针,p指向了一个数组,... 阅读全文
posted @ 2015-04-18 16:14
xgcode
阅读(163)
评论(0)
推荐(0)
浙公网安备 33010602011771号