DFS
M阳光
java
展开
-
HDU 1829 A Bug's Life
链接:http://acm.hdu.edu.cn/showproblem.php?pid=1829 用二分图做的,,,,,,原创 2014-07-18 16:30:53 · 569 阅读 · 0 评论 -
HDU 1016 Prime Ring Problem
链接:http://acm.hdu.edu.cn/showproblem.php?pid=1016 DFSd原创 2014-06-27 22:38:24 · 422 阅读 · 0 评论 -
第七届河南省ACM A题
DFS原创 2014-05-27 21:49:41 · 1078 阅读 · 0 评论 -
POJ 2386 Lake Counting
链接:http://poj.org/problem?id=2386原创 2014-05-28 13:23:31 · 486 阅读 · 0 评论 -
LeetCode Convert Sorted Array to Binary Search Tree
链接: https://oj.leetcode.com/problems/convert-sorted-array-to-binary-search-tree/原创 2014-11-04 21:35:22 · 574 阅读 · 0 评论 -
LeetCode Path Sum
链接: https://oj.leetcode.com/problems/path-sum/ shen原创 2014-11-24 22:25:40 · 494 阅读 · 0 评论 -
LeetCode Sum Root to Leaf Numbers
链接: https://oj.leetcode.com/problems/sum-root-to-leaf-numbers/ dfs..sum保存中间结果.每计算完一条路径,就更新ans /** * Definition for binary tree * struct TreeNode { * int val; * TreeNode *left; *原创 2014-12-02 19:37:15 · 394 阅读 · 0 评论 -
LeetCode Letter Combinations of a Phone Number
链接:https://oj.leetcode.com/problems/letter-combinations-of-a-phone-number/递归算法:class Solution { public: vector<string> letterCombinations(string digits) { vector<string>原创 2015-02-06 01:37:29 · 692 阅读 · 0 评论