最近刚开始接触动态规划(Dynamic Programming)算法,之前略有耳闻,一直觉得DP非常之高大上,看了某些题的DP解法也是云里雾里,哇擦?!这么几行代码就解决了?怎么全是数组操作?时间复杂度也很低的样子。其实不然,当我真正开始学习动态规划的时候才发现这货没那么玄乎。把我对DP浅显的理解总...
分类:
其他好文 时间:
2014-12-24 17:56:40
阅读次数:
132
DLL 是 Dynamic Link Library 的缩写,译为“动态链接库”。DLL也是一个被编译过的二进制程序,可以被其他程序调用,但与 exe 不同,DLL不能独立运行,必须由其他程序调用载入内存。DLL 中封装了很多函数,只要知道函数的入口地址,就可以被其他程序调用。Windows API...
分类:
其他好文 时间:
2014-12-24 09:48:55
阅读次数:
109
static_cast,dynamic_cast, const_cast, reinterpret_castdynamic_cast比static_cast多了安全检测,判断源和目标有无继承被继承关系,所以强制将父类指针赋给子类指针的时候只能用static_cast。如class D:public ...
分类:
编程语言 时间:
2014-12-24 07:36:37
阅读次数:
145
题目:
Given n, how many structurally unique BST's (binary search trees) that store values 1...n?
For example,
Given n = 3, there are a total of 5 unique BST's.
1 3 3 2 ...
分类:
编程语言 时间:
2014-12-23 22:47:03
阅读次数:
301
在Spark1.2.0版本中是用parquet存储类型时注意事项:sql语句:select * from order_created_dynamic_partition_parquet;在spark-sql中执行结果:2014-05 [B@4621484a [B@3311163e2014-0...
分类:
数据库 时间:
2014-12-23 19:17:22
阅读次数:
326
题目:
You are climbing a stair case. It takes n steps to reach to the top.
Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb to the top?
思路解析:
无法一下子判断是 Fib...
分类:
编程语言 时间:
2014-12-23 15:39:32
阅读次数:
309
web项目中有时候客户要求我们使用ad域进行身份确认,不再另外做一套用户管理系统。其实客户就是只要一套账号可以访问所有的OA,CRM等办公系统。
这就是第三方验证。一般有AD域,Ldap,Radius,邮件服务器等。最常用的要数AD域了。因为window系统在国内占据了大量的江山。做起来也很方便。
我这篇文章就是写,如何用java去实现AD域的身份验证。好了,直接看代码吧:package co...
分类:
编程语言 时间:
2014-12-23 15:39:22
阅读次数:
258
题目:
Given a m x n grid filled with non-negative numbers, find a path from top left to bottom right which minimizes the sum of all numbers along its path.
Note: You can only move either down or r...
分类:
编程语言 时间:
2014-12-23 14:01:48
阅读次数:
218
2014-12-23 测试机器配置:128G ssd,mac pro i5双核, 8G内存1 开启APC前,先测试:500并发,10秒,本地测试以下地址:http://my.m.zmqnw/http://my.m.zmqnw/dynamichttp://my.m.zmqnw/dynamic/2600...
分类:
其他好文 时间:
2014-12-23 01:30:40
阅读次数:
228
我们用Eclipse创建Maven结构的web项目的时候选择了Artifact Id为maven-artchetype-webapp,由于这个catalog比较老,用的servlet还是2.3的,而一般现在至少都是2.5,在 Project Facets里面修改Dynamic web module为...
分类:
Web程序 时间:
2014-12-22 14:21:36
阅读次数:
235