码迷,mamicode.com
首页 > 其他好文
[LeetCode] Longest Consecutive Sequence 求最长连续序列
Given an unsorted array of integers, find the length of the longest consecutive elements sequence. For example,Given [100, 4, 200, 1, 3, 2],The longes...
分类:其他好文   时间:2015-02-06 01:55:18    阅读次数:153
找子孙树
$area = array( array('id'=>1,'name'=>'安徽','parent'=>0), array('id'=>2,'name'=>'海淀','parent'=>7), array('id'=>3,'name'=>'濉溪县','parent'=>5),...
分类:其他好文   时间:2015-02-06 01:54:46    阅读次数:214
千万级巨型汉语词库分享
算法+语料≈NLP 这是一个六千万词汇量的分类词库,做HanLP这么久,我逐渐体会到,算法无法解决所有问题,词库也非常重要。通常一个算法可以解决80%的问题,剩下的20%无论怎么调节优化,都是拆东墙补西墙。比如上次...
分类:其他好文   时间:2015-02-06 00:53:48    阅读次数:387
Genymotion安装
Genymotion提供Android虚拟环境的工具集。相信很多Android开发者一定受够了速度慢、体验差效率及其地下的官方模拟器了。如果你没有物理机器,又不想忍受官方模拟器的折磨,Genymotion会是你非常不错的选择。 安装...
分类:其他好文   时间:2015-02-06 00:52:17    阅读次数:440
我是怎么找到电子书的 - IT篇
电子出版物 IT-ebooks http://it-ebooks.info/ 上万本英文原版电子书,大多数为apress和o‘relly的。全都是文字版,体积小又清楚。适合懂英文的人看。 脚本之家电子书 http://www.jb51.net/books/ 很多扫描版的电子...
分类:其他好文   时间:2015-02-06 00:51:56    阅读次数:195
LeetCode --- 36. Valid Sudoku
题目链接:Valid Sudoku Determine if a Sudoku is valid, according to: Sudoku Puzzles - The Rules. The Sudoku board could be partially filled, where empty cells are filled with the character '.'. Note: A...
分类:其他好文   时间:2015-02-06 00:50:56    阅读次数:189
LeetCode --- 37. Sudoku Solver
题目链接:Sudoku Solver Write a program to solve a Sudoku puzzle by filling the empty cells. Empty cells are indicated by the character '.'. You may assume that there will be only one unique solution. ...
分类:其他好文   时间:2015-02-06 00:49:25    阅读次数:155
LeetCode --- 38. Count and Say
题目链接:Count and Say The count-and-say sequence is the sequence of integers beginning as follows: 1, 11, 21, 1211, 111221, ... 1 is read off as "one 1" or 11. 11 is read off as "two 1s" or 21. 2...
分类:其他好文   时间:2015-02-06 00:51:16    阅读次数:133
UVa 145 - Gondwanaland Telecom
题目:打电话,有A-E五种类型的电话,每天分成三个时段,每个时段每种电话的收费不同;             现在,一直电话类型和通话的起始和结束时间,统计每个时段打了几分钟电话及总话费。 分析:模拟。这里直接把一天24小时转化成1440个分钟,每个分钟看做是一个左闭右开的区间;              则可以把1440个区间映射到一个1440元素的数组中,枚举时间区间中所有点计数即可; ...
分类:其他好文   时间:2015-02-06 00:46:47    阅读次数:241
尹成老师免费公开课群282153553,通过在线考试颁发清华证书
??尹成老师免费公开课群282153553,通过在线考试颁发清华证书...
分类:其他好文   时间:2015-02-06 00:47:01    阅读次数:253
小手记之HotSpot Attach机制
也就是说,以Linux平台为栗,使用了两种IPC方式, 1. 信号机制。首先external process会先发送一个SIGQUIT信号给target VM process,target VM会创建一个Attach Listener线程; 2. Unix domain socket。...
分类:其他好文   时间:2015-02-06 00:45:02    阅读次数:247
QT中静态库的生成与使用
一. 静态库的生成 1. 测试目录: lib 2. 源码文件名: mywindow.h, mywindow.cpp, 类MyWindow继承于QPushButton, 并将文字设置为"I'm in class MyWindow"; 3. 编写项目文件: mywindow.pro 注意两点: TEMP...
分类:其他好文   时间:2015-02-06 00:45:29    阅读次数:246
PyQt5 简易计算器
剩下计算函数(self.calculator)未实现,有兴趣的朋友可以实现它【知识点】1、利用循环添加按钮部件,及给每个按钮设置信号/槽2、给按钮设置固定大小:button.setFixedSize(QtCore.QSize(60,30))3、取事件的的发送者(此例为各个按钮)的文本: self.s...
分类:其他好文   时间:2015-02-06 00:45:29    阅读次数:298
am335x -- kio 控制接口
//example #include #include #include #include #define GPIO_TO_PIN(bank, gpio) (32 * (bank) + (gpio))int main(int argc, char * argv){ int i, n, fd; cha...
分类:其他好文   时间:2015-02-06 00:43:09    阅读次数:314
红绿灯
派猴子来的救兵这是什么鬼有天冲到十字路口, 可是刚刚变成红灯,等了20秒. 接下来还有十几个路口, 就想这次红灯等了20秒, 会不会一连串的红灯把这20秒放大了, 导致到最后耽误了几分钟.有点像蝴蝶效应.一直感观认为第一个路口耽误的时间会放大, 不知道有没有别人和我一样的第一感?写了一个程序验证了一...
分类:其他好文   时间:2015-02-06 00:45:21    阅读次数:233
am335x -- led 控制
#include #include #include #include int main(void){FILE *p=NULL;int i=0;p = fopen("/sys/class/gpio/export","w");fprintf(p,"%d",38);fclose(p);p =fopen(...
分类:其他好文   时间:2015-02-06 00:43:05    阅读次数:427
Dynamics CRM导出数据到Excel
原创地址:http://www.cnblogs.com/jfzhu/p/4276212.html转载请注明出处Pivot Table是微软BI的一个重要工具,所以这里讲一下Dynamics CRM将数据导出到Excel的功能。(一)导出数据到Excel的三种类型下图中点击红框内的按钮EXPORT T...
分类:其他好文   时间:2015-02-06 00:44:02    阅读次数:260
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!