首页 > 其他
hdu 2476 区间dp
题意:给出两个串s1和s2,一次只能将一个区间刷一次,问最少几次能让s1=s2例如zzzzzfzzzzz,长度为11,我们就将下标看做0~10先将0~10刷一次,变成aaaaaaaaaaa1~9刷一次,abbbbbbbbba2~8:abcccccccba3~7:abcdddddcba4~6:abcd...
分类:其他   时间:2015-05-10 17:14:22    收藏:0  评论:0  赞:0  阅读:136
LeetCode 20 Generate Parentheses
Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses.For example, given n = 3, a solution set is:"((...
分类:其他   时间:2015-05-10 17:13:59    收藏:0  评论:0  赞:0  阅读:206
express4构建个人博客
安装node1 $ npm install -g express2 $ npm install -g express-generator3 $ express myBlog4 $ cd myBlog && npm install5 $ npm start npm start 之后就跑起来了,打开浏览...
分类:其他   时间:2015-05-10 17:13:50    收藏:0  评论:0  赞:0  阅读:199
记录最大坐标
- (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event{ NSArray *allTouches = [touches allObjects]; if([allTouches count] >=2)...
分类:其他   时间:2015-05-10 17:13:38    收藏:0  评论:0  赞:0  阅读:144
逆序数2 HDOJ 1394 Minimum Inversion Number
题目传送门1 /*2 求逆序数的四种方法3 */ 1 /* 2 1. O(n^2) 暴力+递推 法:如果求出第一种情况的逆序列,其他的可以通过递推来搞出来,一开始是t[1],t[2],t[3]....t[N] 3 它的逆序列个数是N个,如果把t[1]放到t[N]后面,逆序列个...
分类:其他   时间:2015-05-10 17:12:48    收藏:0  评论:0  赞:0  阅读:110
strip 命令的使用方法
用途通过除去绑定程序和符号调试程序使用的信息,降低扩展公共对象文件格式(XCOFF)的对象文件的大小。语法strip [ -V] [ -r [ -l ] | -x [ -l ] | -t | -H | -e | -E ] [ -X {32|64|32_64}] [ -- ] ...
分类:其他   时间:2015-05-10 17:11:18    收藏:0  评论:0  赞:0  阅读:103
常用日期格式
1. (get-date -Format 'R') -replace '(?i)[a-z]{3},\s([0-9]{2})\s([a-z]{3})\s([0-9]{4})\s.*', '$2-$1-$3'May-19-20142. (get-date -Format 'R').substring.....
分类:其他   时间:2015-05-10 17:11:08    收藏:0  评论:0  赞:0  阅读:258
LeetCode-60 Permutation Sequence
The set[1,2,3,…,n]contains a total ofn! unique permutations.By listing and labeling all of the permutations in order,We get the following sequence (ie...
分类:其他   时间:2015-05-10 17:10:38    收藏:0  评论:0  赞:0  阅读:277
爬虫概述
之前本打算做垂直搜索时使用了python的scrapy抓取 大众点评网的数据。现在准备做一款互联网医疗的产品。爬虫是需要抓取自然理论数据。因此对主流的开源爬虫框架做一个介绍。Java:Nutch,HeritrixC++:Larbin,PolyBotPython:ScrapyErlang:EbotR....
分类:其他   时间:2015-05-10 17:10:18    收藏:0  评论:0  赞:0  阅读:368
创建日历和日期列表
以下是一段创建DateTime集合的脚本片段。只需要指定年和月,脚本将会针对该月的每一天创建一个DateTime对象:$month = 8$year = 20131..[DateTime]::DaysInMonth($year,$month) | ForEach-Object { Get-Date....
分类:其他   时间:2015-05-10 17:10:08    收藏:0  评论:0  赞:0  阅读:226
“权限”用英语该用哪个?
“权限”是我们设计系统不可缺少的,关于“权限”的英语单词也非常多,该用哪个呢?我參照有关“权限”的英文软件,总结例如以下,不足之处,多多指正:Permission:权限,包含动作和客体,比方:加入文档,“加入”是动作,“文档”是客体。相近的也有:Access Control。Privilege:权力...
分类:其他   时间:2015-05-10 17:09:58    收藏:0  评论:0  赞:0  阅读:233
DDL DML DCL语句
总体解释:DML(data manipulation language):自动提交的数据库操作语言 它们是SELECT、UPDATE、INSERT、DELETE,就象它的名字一样DDL(data definition language):自动提交的数据库定义语言 主要的命令有CREATE、ALTER...
分类:其他   时间:2015-05-10 17:09:08    收藏:0  评论:0  赞:0  阅读:250
DataTable与List的转化
usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Web;usingSystem.Data;usingSystem.Reflection;public class DataConverter { ...
分类:其他   时间:2015-05-10 17:08:09    收藏:0  评论:0  赞:0  阅读:143
时间格式转换
在WMI中使用Win32_NTLogEvent查询出来的日志生成时间timegenerated类似于“20130820162350.350000+480“,这种时间格式很特殊,经查是DMTF时间格式字符串,在PowerShell中与其它时间类型进行比较就需要对其进行转换,将DMTF字符串转DateT...
分类:其他   时间:2015-05-10 17:07:58    收藏:0  评论:0  赞:0  阅读:265
常用日期计算
# 获取最小的日期(通常用于做日期计算)Get-Date 0# 获取当前日期Get-Date# 获取当前日期的年(Get-Date).Year# 获取当前日期的月(Get-Date).Month# 获取当前日期的日(Get-Date).Day# 获取从今年起的天数(Get-Date).DayOfYe...
分类:其他   时间:2015-05-10 17:07:28    收藏:0  评论:0  赞:0  阅读:226
Intellij IDEA 14使用maven3.3.3 问题
Intellij IDEA 14使用maven3.3.3报错:-Dmaven.multiModuleProjectDirectory system propery is not set. Check $M.....解决方法:换个低版本的maven就可以了,我用的是maven3.0.5
分类:其他   时间:2015-05-10 17:07:19    收藏:0  评论:0  赞:0  阅读:610
puppet
puppetmaster启动失败,提示:Error: Could not configure routes from /etc/puppet/routes.yaml: Could not find terminus puppetdb for indirection facts安装以下软件即可:apt...
分类:其他   时间:2015-05-10 17:06:38    收藏:0  评论:0  赞:0  阅读:727
HAXM cannot be installed nutil TV-x is enabled
提示错误:如图HAXM cannot be installed nutil TV-x is enabled问题原因: 电脑没有启动Intel的虚拟化技术解决方法: 重启电脑,进BIOS中启动VT-x。 电脑进入BIOS页面的方式不尽相同,有F1,F2,F8, ESC等 进入BIOS页面选择Con.....
分类:其他   时间:2015-05-10 17:06:19    收藏:0  评论:0  赞:0  阅读:494
caffe BUG
新版的Caffe中所有运行的地方都要使用绝对地址,如:#!/usr/bin/env sh./build/tools/caffe train --solver=examples/mnist/lenet_solver.prototxt需要改成:/home/raoqiang/OPEN_SDK/caffe-...
分类:其他   时间:2015-05-10 17:05:48    收藏:0  评论:0  赞:0  阅读:246
StdC--11 指针基本知识(2)
Hightlight1. Review & summary2. 指针数组&数组指针(指向数组的指针)3.数组和字符串4. 函数指针(指向函数的指针)5. 堆分配内存 malloc函数6. 堆分配内存其他相关函数: 6.1 calloc 函数 6.2 realloc 函数1. Review & sum...
分类:其他   时间:2015-05-10 17:05:28    收藏:0  评论:0  赞:0  阅读:188
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!