首页 > 其他
78. Subsets (Recursion, DP)
Given a set of distinct integers,nums, return all possible subsets.Note:Elements in a subset must be in non-descending order.The solution set must not...
分类:其他   时间:2015-10-05 06:58:43    收藏:0  评论:0  赞:0  阅读:178
覆盖整个控制器的指示图
将视图添加到:-(void)showInView:(UIView *)view{ [[UIApplication sharedApplication].delegate.window.rootViewController.view addSubview:self];}
分类:其他   时间:2015-10-05 06:58:33    收藏:0  评论:0  赞:0  阅读:247
Find Peak Element
A peak element is an element that is greater than its neighbors.Given an input array wherenum[i] ≠ num[i+1], find a peak element and return its index....
分类:其他   时间:2015-10-05 06:58:23    收藏:0  评论:0  赞:0  阅读:156
LeetCode Find Minimum in Rotated Sorted Array
原题链接在这里:https://leetcode.com/problems/find-minimum-in-rotated-sorted-array/Method 1 就是找到第一个违反升序的值,就是最小值,若是没有,那么第一个值就是最小值. Time O(n).但还有更快的方法,比O(n)更快的方...
分类:其他   时间:2015-10-05 06:58:03    收藏:0  评论:0  赞:0  阅读:234
HDU-3320
Alice’s CubeTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1866Accepted Submission(s): 591Problem...
分类:其他   时间:2015-10-05 06:57:43    收藏:0  评论:0  赞:0  阅读:208
BZOJ3836 : [Poi2014]Tourism
对于一个连通块,取一个点进行dfs,得到一棵dfs搜索树,则这棵树的深度不超过10,且所有额外边都是前向边。对于每个点x,设S为三进制状态,S第i位表示根到x路径上深度为i的点的状态:0:选了1:没选,且没满足2:没选,且已满足设f[i][j]表示考虑根到x路径上深度为i的点时这些点的状态为j时的最...
分类:其他   时间:2015-10-05 06:57:23    收藏:0  评论:0  赞:0  阅读:286
Pyhton学习笔记
def是将一个函数对象和一个变量关联起来,这样使用 变量名() 就可以调用该函数,而lambda定义函数,直接返回的函数对象。变量的作用域:变量分为函数内的变量(本地变量),模块的变量(全局变量),built_in变量(整个Pyhton语言事先定义好的变量,如 for、list),其作用域依次由小增...
分类:其他   时间:2015-10-05 06:57:03    收藏:0  评论:0  赞:0  阅读:264
无锁栈的实现
templateclass LockFreeStack{private: struct Node; struct CountedNode { int externalCount = 0; Node* ptr = nullp...
分类:其他   时间:2015-10-05 06:56:54    收藏:0  评论:0  赞:0  阅读:353
struts2注解@Result的params
需求: 基于redirect的参数跳转 实现: @Action(value = "delStudentCourses", results = { @Result(name = "success", location = "studentCourses.action",type="redirect",params= ...
分类:其他   时间:2015-10-05 02:03:48    收藏:0  评论:0  赞:0  阅读:535
Slor5.x与mmseg4j的集成【使用solr自带的Jetty Server】
一、mmseg4j对Solr5.x的支持必须使用mmseg4j-2.0以上的版本,本例中我使用的是mmseg4j solr 2.3.0,使用的solr是截止目前为止的solr5.3.1,可下载附件,注意Solr-5.3.1是linux版本,如果需要windows版本,直接去官网上下载,so easy。 ? 二、mmseg4j-2.0后的jar包只有两个了,一个是mmseg4j-core-1. ...
分类:其他   时间:2015-10-05 02:02:33    收藏:0  评论:0  赞:0  阅读:217
CentOS安装Redis记录
redis 是一个基于内存的高性能key-value数据库,数据都保存在内存中定期刷新到磁盘,以极高的读写效率而备受关注。他的特点是支持各种数据结构,stirng,hashes, list,set,和sorted sets ? 1.下载安装 wget http://download.redis.io/redis-stable.tar.gz tar -zxvf redis-stable.t ...
分类:其他   时间:2015-10-05 02:02:08    收藏:0  评论:0  赞:0  阅读:206
【转】hadoop中map和reduce的数量设置问题
原文链接 http://my.oschina.net/Chanthon/blog/150500map和reduce是hadoop的核心功能,hadoop正是通过多个map和reduce的并行运行来实现任务的分布式并行计算,从这个观点来看,如果将map和reduce的数量设置为1,那么用户的任务就没有...
分类:其他   时间:2015-10-05 01:53:33    收藏:0  评论:0  赞:0  阅读:243
我与软件工程
讲授《软件工程》这门课断断续续已经有十个年头了,现在回过头总结一下自己的思考历程,与大家分享。 1、史前 我所在的学校是一所职业技术学校(学院),1997年刚调去的时候,我们计算机系才建系不久,连带系主任总共只有八个人。那时,我刚开始从事计算机教学工作,我能做的无非是把过去在学校学的内容,鹦鹉学舌地...
分类:其他   时间:2015-10-05 01:53:13    收藏:0  评论:0  赞:0  阅读:288
LintCode "Delete Digits"
Greedy: remove earliest down-edge: like "54", "97".class Solution {public: /** *@param A: A positive integer which has N digits, A is a string....
分类:其他   时间:2015-10-05 01:52:44    收藏:0  评论:0  赞:0  阅读:225
并查集 - 1611 The Suspects
题目地址:http://poj.org/problem?id=1611分析: - 数据结构 - parent[x] 表示 x 元素的父节点位置. - rank[x] 记录x的子链的长度, 以便在合并的时候减少链条长度. 查找的时候使用了路劲压缩, 所以两个节点的rank差不会大于1, ...
分类:其他   时间:2015-10-05 01:52:23    收藏:0  评论:0  赞:0  阅读:271
box-shadow
一、box-shadow介绍box-shadow属性向box添加一个或多个阴影。语法:box-shadow: offset-x offset-y blur spread color inset;box-shadow: X轴偏移量 Y轴偏移量 [阴影模糊半径] [阴影扩展] [阴影颜色] [投影方式]...
分类:其他   时间:2015-10-05 01:51:53    收藏:0  评论:0  赞:0  阅读:347
Leetcode那点事儿
1 、Two Sum2、Add Two Numbers
分类:其他   时间:2015-10-05 01:51:43    收藏:0  评论:0  赞:0  阅读:184
HDU 5495 LCS (并查集判环)
【题目链接】:click here~~ 【题目大意】: Problem Description You are given two sequence {a1,a2,...,an} and {b1,b2,...,bn}. Both sequences are permutation of {1,2,...,n}. You are going to find another ...
分类:其他   时间:2015-10-05 00:49:23    收藏:0  评论:0  赞:0  阅读:600
hive启动报错: Found class jline.Terminal, but interface was expected
故障:[ERROR] Terminal initialization failed; falling back to unsupportedjava.lang.IncompatibleClassChangeError: Found class jline.Terminal, but interface was expected        at jline.TerminalFactory.cre...
分类:其他   时间:2015-10-05 00:49:03    收藏:0  评论:0  赞:0  阅读:1118
A019-布局之GridLayout
GridLayout网格布局,是Android4.0之后的API才提供的,算是一个相对新的布局容器,它的用法也很简单,类似LinearLayout可以指定方向,也可以指定控件占用多少行或列的空间。举例我们看一个例子: 这里我做了一个登录的一个布局,如果不使用GridLayout来进行布局,可能会有多个布局的嵌套才能实现这样的布局,相对比较麻烦,使用了GridLayout我们可以更加灵活的去控制对齐...
分类:其他   时间:2015-10-05 00:48:43    收藏:0  评论:0  赞:0  阅读:169
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!