2017年4月6日

接触深度优先搜索

摘要: ``` include using namespace std; / 查找是否存在部分和等于一个给定的值, 对于递归的初步应用,与深度优先搜索 不加与加的情况,进行递归 / int a[100]; int n,k,i,sum; bool dfs(int i,int sum,int n){ cout 阅读全文

posted @ 2017-04-06 00:52 linese-d 阅读(104) 评论(0) 推荐(0)

导航