首页 > 其他
LintCode "Median"
Partial Sort.class Solution {public: /** * @param nums: A list of integers. * @return: An integer denotes the middle number of the array. ...
分类:其他   时间:2015-09-15 06:58:32    收藏:0  评论:0  赞:0  阅读:172
Single Number 解答
QuestionGiven an array of integers, every element appearstwiceexcept for one. Find that single one.Solution 1 -- SetWe can use a hash set to record ea...
分类:其他   时间:2015-09-15 06:57:52    收藏:0  评论:0  赞:0  阅读:205
House Robber II
Note:This is an extension ofHouse Robber.After robbing those houses on that street, the thief has found himself a new place for his thievery so that h...
分类:其他   时间:2015-09-15 06:57:32    收藏:0  评论:0  赞:0  阅读:308
Minimum Size Subarray Sum 解答
QuestionGiven an array ofnpositive integers and a positive integers, find the minimal length of a subarray of which the sum ≥s. If there isn't one, re...
分类:其他   时间:2015-09-15 06:56:32    收藏:0  评论:0  赞:0  阅读:237
ISO/IEC 9899:2011 条款6.4.9——注释
ISO/IEC 9899:2011 条款6.4.9——注释
分类:其他   时间:2015-09-15 06:56:22    收藏:0  评论:0  赞:0  阅读:157
[hdu5439 Aggregated Counting]公式化简,预处理
题意:按下列规则生成一组序列,令f(n)为n这个数在序列中出现的最后一个位置,求f(f(n))的值。1. First, write down 1, 2 on a paper.2. The 2nd number is 2, write down 2 2’s (including the one ori...
分类:其他   时间:2015-09-15 06:56:02    收藏:0  评论:0  赞:0  阅读:331
[LeetCode#156] Binary Tree Upside Down
Problem:Given a binary tree where all the right nodes are either leaf nodes with a sibling (a left node that shares the same parent node) or empty, fl...
分类:其他   时间:2015-09-15 06:55:42    收藏:0  评论:0  赞:0  阅读:294
[hdu5448 Marisa’s Cake]多边形面积,公式化简
题意:给一个凸多边形,求任选若干点形成的多边形的面积和。思路:按一定方向(顺时针或逆时针)对多边形的顶点进行编号,则多边形的面积计算公式为:f1 x f2+ f2x f3 + ... fn-1 x fn+ fn x f1,fi表示从参考点到i的向量。考虑fix fj 在答案中出现的次数,则答案可以写...
分类:其他   时间:2015-09-15 06:55:32    收藏:0  评论:0  赞:0  阅读:255
自定义label及block动画的使用
sender.enabled = NO; CGFloat labW = 150; CGFloat labH = 30; CGFloat labX = (self.superview.frame.size.width -labW)*0.5; CGFloat l...
分类:其他   时间:2015-09-15 06:55:22    收藏:0  评论:0  赞:0  阅读:130
SSMS For Beginner Part 25 to 27
Part 25 DateTime functions in SQL ServerPart 26 IsDate, Day, Month, Year and DateName DateTime functions in SQL ServerPart 27 DatePart, DateAdd and Da...
分类:其他   时间:2015-09-15 06:55:12    收藏:0  评论:0  赞:0  阅读:259
LeetCode "Zigzag Iterator"
Capable to k-vector input too:class ZigzagIterator { int x; int i; int max_x; vector*> l; void moveon() { int oldi= i...
分类:其他   时间:2015-09-15 06:54:52    收藏:0  评论:0  赞:0  阅读:238
Valid Anagram 解答
QuestionGiven two stringssandt, write a function to determine iftis an anagram ofs.For example,s= "anagram",t= "nagaram", return true.s= "rat",t= "car...
分类:其他   时间:2015-09-15 06:54:32    收藏:0  评论:0  赞:0  阅读:211
transform、transition 和 animation区别
CSS3中和动画有关的属性有三个transform、transition和animation。下面来一一说明:transform从字面来看transform的释义为改变,使…变形;转换 。这里我们就可以理解为变形。那都能怎么变呢?none 表示不进行变换;rotate 旋转 transfor...
分类:其他   时间:2015-09-15 06:54:02    收藏:0  评论:0  赞:0  阅读:255
FPGA中PIN连接inout类型信号
verilog中处理该问题较为复杂,尤其是当该inout类型信号比较多或者来自第三方IP时。这时候,最佳的处理方法是使用模块原理图设计方式。^_^
分类:其他   时间:2015-09-15 06:53:52    收藏:0  评论:0  赞:0  阅读:217
报表性能优化方案之多种报表服务器内存修改方法
服务器内存修改 各应用服务器的内存配置方法不尽相同,如下列出了常用服务器的JVM参数(-Xms,-Xmx)配置方法。 JVM参数定义: -?Xms:?初始化内存? ...
分类:其他   时间:2015-09-15 02:10:27    收藏:0  评论:0  赞:0  阅读:346
10种类型的IT人士性格分析
IT领域,是许多高智商的人群聚集地,他们又有着怎样的性格特征? ? 在IT领域,左脑型的思想者具有优势。不过,根据Alan Norton的观察,他们并非完美无缺。你是理性超过感性的左脑型思想者吗?上网的时候你潜水超过参与吗?信息成瘾、摇摆不定、优柔寡断、感觉迟钝……你 知道这种人的十宗罪吗?不过这些罪不一定就会遭致罚,也能得到祝福,世界需要他们。 ? 普通人也许会把IT视为极客之家。而我则 ...
分类:其他   时间:2015-09-15 02:09:12    收藏:0  评论:0  赞:0  阅读:362
LeetCode-63-Unique Paths II
Unique Paths II ? 来自 <https://leetcode.com/problems/unique-paths-ii/> ? Follow up for "Unique Paths": ? Now consider if some obstacles are added to the grids. How many uniqu ...
分类:其他   时间:2015-09-15 02:07:57    收藏:0  评论:0  赞:0  阅读:205
《Effective C艹》读书笔记(13)
条款20:宁以pass-by-reference-to-const替换pass-by-value ? ??传递引用比起传递值的参数有一个明显的优势就是,传递引用并不会构造新的对象,从而避免了构造函数和析构函数的开销,提升函数效率。 ? ? 传引用参数的时候,如果使用const引用,可以告诉接下来要使用函数的人,这个数据在函数中不会被改变。 ? ? ? pass-by-value还会造成对象 ...
分类:其他   时间:2015-09-15 02:05:27    收藏:0  评论:0  赞:0  阅读:208
中文分词中的正向最大匹配与逆向最大匹配
我们都知道,英文的分词由于单词间是以空格进行分隔的,所以分词要相对的容易些,而中文就不同了,中文中一个句子的分隔就是以字为单? ...
分类:其他   时间:2015-09-15 02:05:02    收藏:0  评论:0  赞:0  阅读:288
docker初体验之docker-tomcat
分类:其他   时间:2015-09-15 02:00:52    收藏:0  评论:0  赞:0  阅读:260
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!