码迷,mamicode.com
首页 > 全部
Combination Sum | & ||
Combination Sum | Given a set of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to  ...
分类:其他好文   时间:2016-07-05 06:25:29    阅读次数:154
NodeJS制作爬虫全过程
这篇文章主要介绍了NodeJS制作爬虫的全过程,包括项目建立,目标网站分析、使用superagent获取源数据、使用cheerio解析、使用eventproxy来并发抓取每个主题的内容等方面,有需要的小伙伴参考下吧。 今天来学习alsotang的爬虫教程,跟着把CNode简单地爬一遍。 建立项目cr ...
分类:Web程序   时间:2016-07-05 06:25:40    阅读次数:296
Jump Game | & ||
Jump Game | Given an array of non-negative integers, you are initially positioned at the first index of the array. Each element in the array represent ...
分类:其他好文   时间:2016-07-05 06:24:18    阅读次数:174
312. Burst Balloons
...
分类:其他好文   时间:2016-07-05 06:23:57    阅读次数:151
Backpack | & ||
Backpack | Given n items with size Ai, an integer m denotes the size of a backpack. How full you can fill this backpack? Given n items with size Ai, a ...
分类:其他好文   时间:2016-07-05 06:26:04    阅读次数:303
命名空间
//自定义一个命名空间,可以解决变量重名的问题 //自定义一个命名空间,可以解决函数重名的问题 //匿名命名空间,变量、函数可以直接调用 //命名空间别名 //使用了using namespace以后,调用命名空间成员可以不用写命名空间名称了 ...
分类:其他好文   时间:2016-07-05 06:24:19    阅读次数:190
Nodejs爬虫进阶教程之异步并发控制
Nodejs爬虫进阶教程之异步并发控制 Nodejs爬虫进阶教程之异步并发控制 之前写了个现在看来很不完美的小爬虫,很多地方没有处理好,比如说在知乎点开一个问题的时候,它的所有回答并不是全部加载好了的,当你拉到回答的尾部时,点击加载更多,回答才会再加载一部分,所以说如果直接发送一个问题的请求链接,取 ...
分类:Web程序   时间:2016-07-05 06:22:53    阅读次数:240
学习记录011-磁盘结构和文件系统
一. 磁盘 a.一块磁盘有一个或数个盘片,每个有效面对应一个读写磁头,用磁头号来区分盘面,即盘面数就是磁头数,盘片数*2=磁头数(盘面数)b.不同盘面的磁道被划分为多个扇形区域,每个区域就是一个扇区c.同一个盘面,以盘片中心为原点,每个不同半径的圆形轨迹就是一个磁道d.不同盘面相同半径的磁道组成一个 ...
分类:其他好文   时间:2016-07-05 06:22:42    阅读次数:216
[React] Creating a Stateless Functional Component
Most of the components that you write will be stateless, meaning that they take in props and return what you want to be displayed. In React 0.14, a si ...
分类:其他好文   时间:2016-07-05 06:25:33    阅读次数:261
C与C++不同
C++注重类型,强类型,严格检查类型 C类型检查不明确 //在C可以编译,在C++无法编译 //1>main.cpp(10): error C2440: “=”: 无法从“double *”转换为“int *” //1> main.cpp(10): note: 与指向的类型无关;转换要求 reint ...
分类:编程语言   时间:2016-07-05 06:22:51    阅读次数:223
311. Sparse Matrix Multiplication
...
分类:其他好文   时间:2016-07-05 06:24:11    阅读次数:500
图的遍历 - 数据结构
图的遍历 - 数据结构 图的遍历 - 数据结构 概述 图的遍历是指从图中的任一顶点出发,对图中的所有顶点访问一次且只访问一次。图的遍历操作和树的遍历操作功能相似。图的遍历是图的一种基本操作,图的其它算法如求解图的连通性问题,拓扑排序,求关键路径等都是建立在遍历算法的基础之上。 由于图结构本身的复杂性 ...
分类:其他好文   时间:2016-07-05 06:21:57    阅读次数:154
[Gnu]Centos7 解决 gdb 提示 Missing separate debuginfos
Centos7 上使用gdb: $ gdb php $ run /home/www/2.php 运行完 run,后面跟着很长的提示: …. 运行完 run,后面跟着很长的提示: …. Missing separate debuginfos, use: debuginfo-install cyrus- ...
分类:数据库   时间:2016-07-05 06:22:40    阅读次数:460
node.js基础模块http、网页分析工具cherrio实现爬虫
node.js基础模块http、网页分析工具cherrio实现爬虫 node.js基础模块http、网页分析工具cherrio实现爬虫 一、前言 说是爬虫初探,其实并没有用到爬虫相关第三方类库,主要用了node.js基础模块http、网页分析工具cherrio。 使用http直接获取url路径对应网 ...
分类:Web程序   时间:2016-07-05 06:23:50    阅读次数:234
图的应用详解-数据结构
图的应用详解-数据结构 图的应用详解-数据结构 概述 最小生成树——无向连通图的所有生成树中有一棵边的权值总和最小的生成树 拓扑排序 ——由偏序定义得到拓扑有序的操作便是拓扑排序。建立模型是AOV网 关键路径——在AOE-网中有些活动可以并行地进行,所以完成工程的最短时间是从开始点到完成点的最长路径 ...
分类:其他好文   时间:2016-07-05 06:21:54    阅读次数:333
geeksforgeeks@ Minimum Points To Reach Destination (Dynamic Programming)
http://www.practice.geeksforgeeks.org/problem-page.php?pid=91 Minimum Points To Reach Destination Given a grid with each cell consisting of positive, ...
分类:其他好文   时间:2016-07-05 06:23:47    阅读次数:161
[React] Using the classnames library for conditional CSS
Classnames is a simple yet versatile javascript utility that joins CSS class names based on a set of conditions. We are going to build a simple toggle ...
分类:Web程序   时间:2016-07-05 06:24:08    阅读次数:184
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!