1 : 2 Implement pow(x, n). 3 4 class Solution { 5 public: 6 double pow(double x, int n) { 7 8 //显然我们应该用类似于分治的算法pow(double x, int n) = p...
分类:
其他 时间:
2015-01-06 00:45:25
收藏:
0 评论:
0 赞:
0 阅读:
290
响应者:继承了UIResponder的对象就是响应者响应者链条:1、由多个响应者对象连接起来的链条叫做响应者链条2、什么是上一个响应者? 2.1、如果当前这个view是控制器的view,控制器就是上一个响应者 2.2、如果当前这个view不是控制器的view,那么父控件就是上一个响应者3、利用响应者...
分类:
其他 时间:
2015-01-06 00:44:24
收藏:
0 评论:
0 赞:
0 阅读:
362
1. Add chunk:For example, replace the header by using chunk.Usage: [[$chunk_name]]Cut all the header code from the Learn template [[++site_...
分类:
其他 时间:
2015-01-06 00:44:05
收藏:
0 评论:
0 赞:
0 阅读:
317
起源是这样一道题目:
于是想到通过word dict来算一下:
先去下载了中文词库:
.....
分类:
其他 时间:
2015-01-06 00:43:34
收藏:
0 评论:
0 赞:
0 阅读:
193
题目链接:http://poj.org/problem?id=2378题意:给一个树状图,有n个点。求出,去掉哪个点,使得剩下的每个连通子图中点的数量不超过n/2。分析:num[u]表示以u为根节点的子树的总节点树,判断下与u连接的儿子v代表的子树总节点num[v]和u的父亲代表的子树总节点n-nu...
分类:
其他 时间:
2015-01-06 00:43:15
收藏:
0 评论:
0 赞:
0 阅读:
344
STAF自动化测试框架介绍http://baike.baidu.com/link?url=9oPZN3JntRakidI7xizqCbyGRISMvCKGfXHBB_WH7OAkKjAKZjq88qZgva2bIccEXiSSz_XsA1oTJjg3NRuVSahttp://staf.sourcef...
分类:
其他 时间:
2015-01-06 00:42:44
收藏:
0 评论:
0 赞:
0 阅读:
319
对数据表的插入、更新、删除操作 --数据查询和管理--取消重复元组distinctselect distinct 民族 from 学生信息go--查询前几列数据select top 6 * from 学生信息select top 6 学号,姓名,民族 from 学生信息go--查询计算列sele.....
分类:
其他 时间:
2015-01-06 00:41:54
收藏:
0 评论:
0 赞:
0 阅读:
182
发现4.6 的 本地 文档字体解析采用fonts.googleapis.com ,可是google 自古就与天朝不在一个鼻孔,所以你打开往往需要半天。网上查了一下,把所有本地的*.html 文档fonts.googleapis.com 替换成fonts.useso.com 即可至于批处理。我使用 n...
分类:
其他 时间:
2015-01-06 00:41:44
收藏:
0 评论:
0 赞:
0 阅读:
226
聚散终有时,没想到最终真的会散。我的魂就要散了这么散。元旦时候去探望了奶奶,这件事想了很久,觉得有好多好多话想对奶奶说。元旦的时候看到了奶奶的床头柜,心中就泣不成声了。----那里原本有个人在旁边的,或者在床上躺着,或者来回走动,那个人是我的奶奶。于是照计划,去公墓看了奶奶。也有着计划里的私人聊天机...
分类:
其他 时间:
2015-01-06 00:41:25
收藏:
0 评论:
0 赞:
0 阅读:
186
1 Given an array of integers, find two numbers such that they add up to a specific target number. 2 3 The function twoSum should return indices of t.....
分类:
其他 时间:
2015-01-06 00:41:04
收藏:
0 评论:
0 赞:
0 阅读:
283
1.块状list.list_box{ padding:0px; 15px 30px; width:970px; margin:0 auto; overflow:hidden;}.list_items{ list-style:none; width:1020px;}.list_items li{ wi...
分类:
其他 时间:
2015-01-06 00:40:45
收藏:
0 评论:
0 赞:
0 阅读:
285
2013年谷歌i/o大会上介绍了两个新的layout: SlidingPaneLayout和DrawerLayout,现在这俩个类被广泛的运用,其实研究他们的源码你会发现这两个类都运用了ViewDragHelper来处理拖动。ViewDragHelper是framework中不为人知却非常有用的一....
分类:
其他 时间:
2015-01-06 00:40:35
收藏:
0 评论:
0 赞:
0 阅读:
323
题目:(DP)Givenn, generate all structurally uniqueBST's(binary search trees) that store values 1...n.For example,Givenn= 3, your program should return al...
分类:
其他 时间:
2015-01-06 00:40:04
收藏:
0 评论:
0 赞:
0 阅读:
696
bitmap index说明:set echo ondrop table t purge;create table t ( processed_flag varchar2(1) );create bitmap indext_idx on t(processed_flag);insert into t...
分类:
其他 时间:
2015-01-06 00:39:04
收藏:
0 评论:
0 赞:
0 阅读:
321
template OutputIterator remove_copy (InputIterator first, InputIterator last, OutputIterator result, const T& val);说明: ...
分类:
其他 时间:
2015-01-06 00:38:44
收藏:
0 评论:
0 赞:
0 阅读:
353
昨晚睡觉的时候脑洞想到的…… 目前手机上大多数的播放器应用都有定时退出这个功能嘛,想了下这个功能的主要需求应该在于:(1)用户希望在睡熟之后能自动关闭应用。 然后在这个产生之后,又出现了一些引申需求:(2)比如通过这个功能来计时,比如今天想跑步30分钟就定时30分钟。 虽然说有可能类似需求(2...
分类:
其他 时间:
2015-01-06 00:38:15
收藏:
0 评论:
0 赞:
0 阅读:
298
3065: 带插入区间K小值Time Limit: 60 SecMemory Limit: 512 MBSubmit: 1062Solved: 253[Submit][Status]Description从前有n只跳蚤排成一行做早操,每只跳蚤都有自己的一个弹跳力a[i]。跳蚤国王看着这些跳蚤国欣欣向...
分类:
其他 时间:
2015-01-06 00:37:56
收藏:
0 评论:
0 赞:
0 阅读:
301
CALayer:在iOS中,你能看得见摸得着的东西基本上都是UIView,比如一个按钮、一个文本标签、一个文本输入框、一个图标等等,这些都是UIView。其实UIView之所以能显示在屏幕上,完全是因为它内部的一个图层。在创建UIView对象时,UIView内部会自动创建一个图层(即CALayer对...
分类:
其他 时间:
2015-01-06 00:37:45
收藏:
0 评论:
0 赞:
0 阅读:
450
第一步: alter database dbName set recovery simple;第二步: dbcc shrinkfile('dbName_log');第三步: alter database dbName set recovery full;--------------------...
分类:
其他 时间:
2015-01-06 00:37:24
收藏:
0 评论:
0 赞:
0 阅读:
296
https://pypi.python.org/pypi/setuptools/,下载setuptools。安装成功后,运行下面的指令即可进行相应的安装。easy_install numpyeasy_install scipieasy_install matplotlib可以在:http://www...
分类:
其他 时间:
2015-01-06 00:36:44
收藏:
0 评论:
0 赞:
0 阅读:
351