Given a binary tree, find the maximum path sum.The path may start and end at any node in the tree.For example:Given the below binary tree, 1 ...
分类:
其他好文 时间:
2014-07-02 21:13:05
阅读次数:
170
1、查看机器型号 [root@local ~]# dmidecode | grep "Product Name" Product Name: VMware Virtual Platform Product Name: 440BX Desktop Reference Platform2、查询Linux...
分类:
系统相关 时间:
2014-07-02 20:12:21
阅读次数:
310
设计模式-使用php实现工厂方法模式【概要】创建型模式定义一个用于创建对象的接口,让子类决定实例化哪一个类。Factory Method使用一个类的实例化延迟到其子类【GOF95】【结构图】【主要角色】抽象产品(Product)角色:详细产品对象共同拥有的父类或接口详细产品(Concrete Pro...
分类:
Web程序 时间:
2014-07-02 10:21:17
阅读次数:
243
[LeetCode]Maximum Depth of Binary Tree...
分类:
其他好文 时间:
2014-07-02 08:09:01
阅读次数:
175
【题目】
Given n points on a 2D plane, find the maximum number of points that lie on the same straight line.
【题意】
给定一堆点,要求找出一条之前上的最大点数
【思路】
没什么好的方法,从每个点P出发,遍历所有的情况
从每个点P出发,斜率相同的点即为统一之前上的点
注意两种特殊情况:
1. 两个点重合(即为同一个点)
...
分类:
其他好文 时间:
2014-07-02 06:52:06
阅读次数:
171
简要分析一下build.prop是如何生成的。Android的build.prop文件是在Android编译时收集的各种property(LCD density/语言/编译时间, etc.),编译完成之后,文件生成在out/target/product//system/目录下。在Android运行时...
分类:
移动开发 时间:
2014-07-01 16:56:01
阅读次数:
515
# Sets the target folders and the final framework product.
FMK_NAME=HovnVoipEngine
FMK_VERSION=1.0
# Install dir will be the final output to the framework.
# The following line creat...
分类:
移动开发 时间:
2014-07-01 15:36:58
阅读次数:
265
最近在翻Oracle SQLPLUS官方文档,在讲SQLPLUS Security章节介绍了PUP这个机制。借此,我来使用以下:
PUP(PRODUCT_USER_PROFILE)介绍
PRODUCT_USER_PROFILE是SYSTEM账户下一个表,可提供用户级别的安全限制。
PUP设置对DBA权限用户无效。
PUP只针对本地数据库生效(Local Database...
分类:
数据库 时间:
2014-07-01 14:33:38
阅读次数:
310
高精度乘法问题,WA了两次是因为没有考虑结果为0的情况。ProductThe ProblemThe problem is to multiply two integers X, Y. (0 3 #include 4 #include 5 using namespace std; 6 7 con...
分类:
其他好文 时间:
2014-07-01 10:24:54
阅读次数:
238
(RedHat10gOracle环境)1、配置OracleClusterSynchronization(CSS)要想使用ASM,必须先配置并启动CSS[root@redhat10g~]#cd/u01/app/oracle/product/10.2.0/db_1/bin[root@redhat10gbin]#./localconfigadd2、配置AutomaticStorageManagement(ASM)实例参数[oracle@aix201~]$..
分类:
其他好文 时间:
2014-07-01 09:50:22
阅读次数:
231