上一页 1 ··· 213 214 215 216 217 218 219 220 221 ··· 233 下一页
摘要: 还是参考了这篇文章: http://cnodejs.org/topic/54bdaac4514ea9146862abee 另外有上面文章 nodejs抓取网易公开课的一些经验。 代码如下,注意其中用到了 http获取网页结果,request进行http请求,cheerio进行解析,mkdirp创建目 阅读全文
posted @ 2016-10-17 23:55 blcblc 阅读(1375) 评论(0) 推荐(0)
摘要: 哈哈,我用了HashMap, 双向链表,还有了HashSet来保存key的集合。 我也把解法发到了Discuss版: https://discuss.leetcode.com/topic/63559/my-accepted-java-solution-with-hashmap-and-double- 阅读全文
posted @ 2016-10-17 18:53 blcblc 阅读(339) 评论(0) 推荐(0)
摘要: 准备用cheerio去抓一些网页看看。 可以参考的材料有: http://www.cnblogs.com/CraryPrimitiveMan/p/3674421.html http://cnodejs.org/topic/5203a71844e76d216a727d2e 首先打开WebStorm,新 阅读全文
posted @ 2016-10-17 15:51 blcblc 阅读(508) 评论(1) 推荐(0)
摘要: 关于这方面的知识,这篇文章讲的较全: http://www.jb51.net/article/22467.htm 还有这篇文章也有讲到上面4个函数:https://liuzhichao.com/p/1743.html 首先include和require都是引入指定的文件。_once表示只引入一次,即 阅读全文
posted @ 2016-10-17 15:44 blcblc 阅读(747) 评论(0) 推荐(0)
摘要: 看了一篇文章: http://kb.cnblogs.com/page/193670/ 淘宝应对"双11"的技术架构分析 没怎么看懂,有时间再看。 阅读全文
posted @ 2016-10-17 14:06 blcblc 阅读(165) 评论(0) 推荐(0)
摘要: 现在标准服务基本都提供REST化的接口了。为了加强对REST的理解,看了这篇文章: http://kb.cnblogs.com/page/186516/ 5个关键词 详解: 统一接口 6个主要特征 架构风格: 阅读全文
posted @ 2016-10-17 11:23 blcblc 阅读(530) 评论(0) 推荐(0)
摘要: 用sliding window的方法,之前还有个k不同元素好像也是类似的思路。有时间可以去复习下。 阅读全文
posted @ 2016-10-16 22:21 blcblc 阅读(965) 评论(0) 推荐(0)
摘要: https://leetcode.com/problems/reconstruct-original-digits-from-english/ //https://discuss.leetcode.com/topic/63386/one-pass-o-n-java-solution-simple-and-clear public class Solution { // zero ... 阅读全文
posted @ 2016-10-16 20:56 blcblc 阅读(662) 评论(0) 推荐(0)
摘要: https://leetcode.com/problems/third-maximum-number/ // 开始我以为相同的也占一位,比如5,3,3,2,得出3,但是答案是需要2 public class Solution { public int thirdMax(int[] nums) { List lst = new ArrayList(); ... 阅读全文
posted @ 2016-10-16 20:11 blcblc 阅读(398) 评论(0) 推荐(0)
摘要: 我自己做出来的,分了几种情况来考虑。(再后面有加了注释的版本) 以下是加了注释的版本: 准备发表在Discuss版: https://discuss.leetcode.com/category/549/strong-password-checker 阅读全文
posted @ 2016-10-16 15:41 blcblc 阅读(1191) 评论(0) 推荐(0)
上一页 1 ··· 213 214 215 216 217 218 219 220 221 ··· 233 下一页