摘要:
1.通过n1= n3= max { k| k //#include #include#include //#include#include#include#include//#include//#include//#include //#include "func.h"//#include #inc... 阅读全文
posted @ 2015-11-14 20:41
siukwan
阅读(112)
评论(0)
推荐(0)
摘要:
1.仍然是先使用Dijkstra求出最短距离,然后使用深度搜索遍历,以最短距离作为条件进行剪枝,最后求出最短距离的基础上耗费最小的路径//#include//#include #include#include //#include#include#include#include//#include/... 阅读全文
posted @ 2015-11-14 19:50
siukwan
阅读(85)
评论(0)
推荐(0)
摘要:
1.这道题目与leetcode中的Median of Two Sorted Arrays相似,只是偶数情况取前一个,不用求平均2.采用二分法进行查找数组分为如下部分{a[0],a[1],a[2],....a[i-1] | a[i],a[i+1],...a[m-1]}{b[0],b[1],b[2],... 阅读全文
posted @ 2015-11-14 18:03
siukwan
阅读(121)
评论(0)
推荐(0)

浙公网安备 33010602011771号