题目链接In a rooted tree, thelowest common ancestor(or LCA for short) of two verticesuandvis defined as the lowest vertex that is ancestor of both that tw...
分类:
其他好文 时间:
2014-09-24 22:50:17
阅读次数:
296
Android开发的工具类能很好的封装一些常用的操作,以后使用起来也非常方便,我把我经常使用的工具类分享给大家。FileCache:package com.pztuan.common.util;
import java.io.File;
import android.content.Context;
public class FileCache {
private File cacheDir...
分类:
移动开发 时间:
2014-09-24 19:07:37
阅读次数:
305
使用maven在linux上对hadoop2.2进行编译0、环境介绍:Hadoop信息:Version:2.2下载地址:http://mirrors.cnnic.cn/apache/hadoop/common/hadoop-2.2.0/源码包:hadoop-2.2.0-src.tar.gz软件包:hadoop-2.2.0.tar.gzOs环境:[root@carefree~]#lsb_release-aLSBVersion::base-4...
分类:
系统相关 时间:
2014-09-24 18:22:57
阅读次数:
328
看网友的解决方案是:下面2行去掉注释;extension=php_mysql.dll;extension=php_mysqli.dl 尝试修改#vi /etc/php.ini发现根本没有这两行查看一下几个模块都已经安装了。php-tidy php-common php-devel php-fpm执....
分类:
数据库 时间:
2014-09-24 16:12:47
阅读次数:
770
lightinthebox头部分类菜单下拉导航,使鼠标移到See All Categories就显示下拉菜单打开includes\templates\lightinthebox\common\tpl_box_dropdown_categories_css.php1.将大约23行代码 改成 ...
分类:
其他好文 时间:
2014-09-24 12:13:26
阅读次数:
205
题目信息:
1007. Maximum Subsequence Sum (25)
时间限制
400 ms
内存限制
32000 kB
代码长度限制
16000 B
判题程序
Standard
作者
CHEN, Yue
Given a sequence of K i...
分类:
其他好文 时间:
2014-09-24 11:12:56
阅读次数:
364
LIS(Longest Increasing Subsequence)最长上升(不下降)子序列,有两种算法复杂度为O(n*logn)和O(n^2)。在上述算法中,若使用朴素的顺序查找在 D1..Dlen查找,由于共有O(n)个元素需要计算,每次计算时的复杂度是O(n),则整个算法的时间复杂度为O(n...
分类:
其他好文 时间:
2014-09-24 08:14:46
阅读次数:
218
dedecms的数据库操作类,非常实用,在二次开发中尤其重要,这个数据库操作类说明算是奉献给大家的小礼物了。引入common.inc.php文件1require_once(dirname(__FILE__) . "/include/common.inc.php");获取一条记录的内容12$row= ...
分类:
数据库 时间:
2014-09-24 00:33:45
阅读次数:
276
一、Web服务器处理Web请求(1)Web请求静态内容,Web服务器寻找静态内容并把它回发给浏览器(2)Web请求动态内容,Web服务器找到所要执行的程序、执行找到的程序,然后捕获程序的输出作为Web响应,再把它发给还在等待的浏览器。生产动态内容的过程已得到标准化,称为通用网关接口(Common G...
分类:
编程语言 时间:
2014-09-23 21:48:15
阅读次数:
190
zencart目录结构文件路径注释index.php主文件includes/templates/[custom template folder]/common/html_header.php页面的head部分includes/templates/[custom template folder]/co...
分类:
其他好文 时间:
2014-09-23 13:02:14
阅读次数:
231