摘要: 一些大神的总结 http://blog.sina.com.cn/s/blog_eb52001d0102v1si.html 递归的两种,写在一个方法里或者两个 /** * Definition of TreeNode: * public class TreeNode { * public int va 阅读全文
posted @ 2017-04-14 22:02 yunyouhua 阅读(306) 评论(0) 推荐(0) 编辑
摘要: 1.递归 /** * Definition of TreeNode: * public class TreeNode { * public int val; * public TreeNode left, right; * public TreeNode(int val) { * this.val 阅读全文
posted @ 2017-04-14 17:21 yunyouhua 阅读(181) 评论(0) 推荐(0) 编辑
摘要: 前序遍历 1-(2-4-5)-3根-左-右 注意:根-左(含左边所有,左边的所有也是根左右结构)-右(右边所有) 一个栈Stack 一个动态数组ArrayList bug:先检查root是否为空 2.递归 很简单,把根放入,递归左子树,再递归右子树 3.分治法:先分后治 有点难理解 先分,对子问题用 阅读全文
posted @ 2017-04-14 16:46 yunyouhua 阅读(217) 评论(0) 推荐(0) 编辑
摘要: It's so good to have you home again ...真高兴你又回家了……and to see Max asleep in his bassinet athome with us.真高兴看到 Max 和我们一起,睡在家里的摇篮。 TLC--tender loving care 阅读全文
posted @ 2016-12-25 22:45 yunyouhua 阅读(146) 评论(0) 推荐(0) 编辑
摘要: 11 a place of our own photos baths buys avenue(not avanue) tile瓦ai tale传言e guarantor pediatrician refinancing n.重新募集资金,发行新债取代旧债 v.再为…筹钱,再供…资金( refinan 阅读全文
posted @ 2016-12-22 21:58 yunyouhua 阅读(409) 评论(0) 推荐(0) 编辑
摘要: Kill the Password: A String of Characters Won't Protect You You have a secret that can ruin your life. It’s not a well-kept secret, either. Just a sim 阅读全文
posted @ 2016-12-12 16:10 yunyouhua 阅读(268) 评论(0) 推荐(0) 编辑
摘要: Day47 English.for.New.Americans-3.Health&Safety.DVDRip.XviD nausea vomiting urine test with meals deodorant toothpast roller blench tile&tub cleaner瓷砖 阅读全文
posted @ 2016-12-11 21:48 yunyouhua 阅读(211) 评论(0) 推荐(0) 编辑
摘要: // 分鱼问题,从E开始递推,使用for循环简化中间计算,优化枚举 #include using namespace std; int main() { int num[5]; for (num[4] = 16; ;num[4] += 20) { int i = 3; for (; i >= 1; --i) { num[i] = num[i+1] / 4 * 5 +... 阅读全文
posted @ 2016-11-30 16:45 yunyouhua 阅读(405) 评论(0) 推荐(0) 编辑