码迷,mamicode.com
首页 > 其他好文
Leetcode: Word Search II
Given a 2D board and a list of words from the dictionary, find all words in the board.Each word must be constructed from letters of sequentially adjac...
分类:其他好文   时间:2015-12-18 06:56:28    阅读次数:239
《Software Testing》 exercise 3 : 安装并使用PICT
下载安装pict33.msi,网址http://vdisk.weibo.com/s/d6k2tcgXDa7Eq安装完后找到文件pict.exe所在目录:C:\Program Files (x86)\PICT在C:\Program Files (x86)\PICT目录下新建一个txt文本,把参数填入t...
分类:其他好文   时间:2015-12-18 06:56:00    阅读次数:186
[lintcode medium] Delete digits
Delete DigitsGiven string A representative a positive integer which has N digits, remove any k digits of the number, the remaining digits are arranged...
分类:其他好文   时间:2015-12-18 06:56:35    阅读次数:263
lintcode medium Best Time to Buy and Sell Stock I,II,III
Best Time to Buy and Sell StockSay you have an array for which theithelement is the price of a given stock on dayi.If you were only permitted to compl...
分类:其他好文   时间:2015-12-18 06:55:46    阅读次数:231
拓扑序列变形 之 poj 1094 Sorting It All Out
/*拓扑序列变形之poj1094SortingItAllOut 变形: 在每消去唯一一个入度为0的点后,只剩下唯一一个入度为0的点。 这样获得的n个点才是排序好的。*/ 1 #include 2 #include 3 #include 4 #include 5 #include ...
分类:其他好文   时间:2015-12-18 06:54:35    阅读次数:231
[lintcode medium]Maximum Subarray II
Maximum Subarray IIGiven an array of integers, find two non-overlapping subarrays which have the largest sum. The number in each subarray should be co...
分类:其他好文   时间:2015-12-18 06:53:38    阅读次数:188
cf519D . A and B and Interesting Substrings 数据结构map
题意:已知26个小写字母有各自的权值(正,负,或0)现在给出一个字符串,长度#include #include #include #include #include #include #define LL long long#define fir first#define sec secondusi...
分类:其他好文   时间:2015-12-18 06:50:16    阅读次数:124
cf 547B. Mike and Feet dp
题意:n个矩阵排成一排,n#include #include using namespace std;const int MAXN = 200000+5;int ans[MAXN];struct Node{ int hei,l,r;};Node node[MAXN];bool cmp(Node...
分类:其他好文   时间:2015-12-18 06:49:52    阅读次数:158
个人所得税计算器2016 by Jacksile
个人所得税计算器2016个人所得税计算器2016税前薪资:元各项社会保险费:元起征点:元应缴税款:元实发薪资:元个人所得税计算公式应纳税额 = 应纳税所得额 x 税率 - 速算扣除数应纳税所得额 = 工资收入金额 - 各项社会保险费 - 起征点(3500元)说明:如果计算的是外籍人士(包括港、澳、台...
分类:其他好文   时间:2015-12-18 06:50:59    阅读次数:126
今天同事周斌在预生产环境的服务器上犯了一个致命的错误
由于同事周斌懂一些Linux的基本操作命令,今天他在预生产环境的服务器上执行了:rm -rf /* ,结果几乎把所有的东西都给删除了,我访问的时候发现预生产环境的服务器不能进行访问了,只好找运维工程师了,╮(╯▽╰)╭。 我告诉周斌:你就不应该要预生产环境的账号,好了吧操作出故障了吧,晚上我给...
分类:其他好文   时间:2015-12-18 06:46:37    阅读次数:122
Leetcode: Rectangle Area
Find the total area covered by two rectilinear rectangles in a 2D plane.Each rectangle is defined by its bottom left corner and top right corner as sh...
分类:其他好文   时间:2015-12-18 06:44:23    阅读次数:134
用循环添加多行、多列视图
用循环构建多视图的相关代码- (viod) viewDidLoad{ [super loadView]; UIView *view = [[[UIView alloc] init] autorelease]; self.view = view; NSInteger l...
分类:其他好文   时间:2015-12-18 06:43:55    阅读次数:136
sgu176 Flow Construction【有源汇有上下界最小流】
同样是模板题。 首先将有源汇转换为无源汇,假设原来的源汇为st,我们加入的源汇为ST,那么我们应该从t到s连一条流量为+∞的边,使原来的st满足收支平衡,退化为普通节点。 分离必要边和其他边,从S到T跑最大流,所有与源或者汇相连的边都流满则证明有解。 去掉t到s容量为+∞的边,去掉必要边,...
分类:其他好文   时间:2015-12-18 06:42:36    阅读次数:219
有关字符串
一.NSString 和 char NSString是OC中独有的定义字符串的关键字,往往后面接的是一个指针(*).由于是因为NSString定义的,所以在OC中打印输出的时候需要添加@符号.接下来就是C中的char,也是定义一个字符串或者字符,但是后面接的完全不一样.由于oc是兼容c的,所以呢.....
分类:其他好文   时间:2015-12-18 06:39:53    阅读次数:183
使用Handler类来更新UI
在android里面,我们经常要上网获取一些数据,然后更新UI,但获取数据是要时间的,如果在主线程里面直接使用获取数据的代码的话。整个activity就会卡在那,直至你获取到数据更新完UI才会加载完成。在android里面,如果一个activity卡了5秒,就会被强制回收掉。 回想一下我们用过...
分类:其他好文   时间:2015-12-18 06:41:33    阅读次数:190
Masonry自动布局使用
Masonry是一个轻量级的布局框架,采用更好的语法封装自动布局,它有自己的布局DSL。简洁明了并具有高可读性 而且同时支持 iOS 和 Max OS X。 下载 NSLayoutConstraints的缺点 NSLayoutConstraints是一个强大且灵活的自动布局架构,可是通过代...
分类:其他好文   时间:2015-12-18 06:41:28    阅读次数:262
关键字break代码优化片段
$data=array(); //循环页面 foreach($config_content['pages'] as $page_type_key=>$page_type_val){ if($page_type_val['page_type']...
分类:其他好文   时间:2015-12-18 06:39:40    阅读次数:117
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!