上一页 1 2 3 4 5 6 ··· 14 下一页
摘要: DFS用到递归,BFS要用到一个辅助队列 include "stdafx.h" include include include include include include using namespace std; struct AMGraph { vector vexs; vector arcs 阅读全文
posted @ 2017-05-09 11:15 wdan2016 阅读(173) 评论(1) 推荐(0) 编辑
摘要: include "stdafx.h" include include include include using namespace std; class Solution { public: int NumberOf1Between1AndN_Solution(int n) { int curre 阅读全文
posted @ 2017-05-05 12:08 wdan2016 阅读(826) 评论(0) 推荐(0) 编辑
摘要: include "stdafx.h" include include include include include using namespace std; class Solution { public: long long nums = 0; int InversePairs(vector d 阅读全文
posted @ 2017-05-04 14:13 wdan2016 阅读(2432) 评论(0) 推荐(0) 编辑
摘要: // ConsoleApplication1.cpp : 定义控制台应用程序的入口点。 // include "stdafx.h" include include include include include using namespace std; class Palindrome { publ 阅读全文
posted @ 2017-04-17 14:18 wdan2016 阅读(505) 评论(0) 推荐(0) 编辑
摘要: // ConsoleApplication1.cpp : 定义控制台应用程序的入口点。 // include "stdafx.h" include include include include include using namespace std; int getStr(string str1, 阅读全文
posted @ 2017-04-01 21:01 wdan2016 阅读(1917) 评论(0) 推荐(0) 编辑
摘要: include "stdafx.h" include include include include include include include include using namespace std; int main() { int w, h, x, n; int pi = 3.141592 阅读全文
posted @ 2017-03-29 21:07 wdan2016 阅读(141) 评论(0) 推荐(0) 编辑
摘要: include "stdafx.h" include include include include include include using namespace std; struct Pathe { int start; int end; int num; }; int main() { in 阅读全文
posted @ 2017-03-29 09:18 wdan2016 阅读(285) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 14 下一页