The video can be found on the website。 $课文20 独坐孤舟 190. Fishing is my favourite sport. 钓鱼是我特别喜爱的一项运动。 191. I often fish for hours without catching anyt ...
分类:
其他好文 时间:
2017-08-26 10:21:11
阅读次数:
143
Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum. F ...
分类:
其他好文 时间:
2017-08-25 00:04:49
阅读次数:
114
安装 一. Apache 安装 yum install -y httpd启动 /etc/init.d/httpd start备注:Apache启动之后会提示错误: 正在启动httpd:httpd: Could not reliably determine the server’s fully qua ...
分类:
系统相关 时间:
2017-08-22 15:57:40
阅读次数:
254
Description The Department of National Defence (DND) wishes to connect several northern outposts by a wireless network. Two different communication te ...
分类:
Web程序 时间:
2017-08-20 14:58:16
阅读次数:
251
一. 题目描写叙述 Given a binary tree, determine if it is a valid binary search tree (BST). Assume a BST is defined as follows: The left subtree of a node con ...
分类:
其他好文 时间:
2017-08-19 22:28:34
阅读次数:
203
Given a binary tree, determine if it is height-balanced. For this problem, a height-balanced binary tree is defined as a binary tree in which the dept ...
分类:
其他好文 时间:
2017-08-18 23:45:49
阅读次数:
171
202. Happy Number Write an algorithm to determine if a number is "happy". A happy number is a number defined by the following process: Starting with a ...
分类:
移动开发 时间:
2017-08-17 22:46:27
阅读次数:
273
题目链接:http://poj.org/problem?id=3616 题目大意:M个区间,每个区间一个对应一个效率值-多少升牛奶,区间可能重复,现要求取出来一些区间,要求是区间间隔不能小于R,问所能得到的牛奶量的最大值。 解题思路:决策:当前区间用或者不用。区间个数M≤1000,因此直接双循环递推 ...
分类:
其他好文 时间:
2017-08-16 20:15:52
阅读次数:
145
题目:洛谷P1039、Vijos P1106、codevs1089。 题目大意:给你一系列证词,要你求出谁是凶手。具体题目见原题。 解题思路:我们枚举犯人和星期,一个一个进行判断。如果成功则记录答案,如果成功且以前已经记录了答案,则说明有多个凶手,输出“Cannot Determine”,如果最后没 ...
分类:
其他好文 时间:
2017-08-16 17:15:50
阅读次数:
186
题目原文: Given a binary tree where each 𝙽𝚘𝚍𝚎 contains a key, determine whether it is a binary search tree. Use extra space proportional to the height ...
分类:
其他好文 时间:
2017-08-14 17:23:14
阅读次数:
159