上一页 1 ··· 276 277 278 279 280 281 282 283 284 ··· 295 下一页
摘要: 关于这方面的知识,这篇文章讲的较全: http://www.jb51.net/article/22467.htm 还有这篇文章也有讲到上面4个函数:https://liuzhichao.com/p/1743.html 首先include和require都是引入指定的文件。_once表示只引入一次,即 阅读全文
posted @ 2016-10-17 15:44 blcblc 阅读(775) 评论(0) 推荐(0)
摘要: 看了一篇文章: http://kb.cnblogs.com/page/193670/ 淘宝应对"双11"的技术架构分析 没怎么看懂,有时间再看。 阅读全文
posted @ 2016-10-17 14:06 blcblc 阅读(183) 评论(0) 推荐(0)
摘要: 现在标准服务基本都提供REST化的接口了。为了加强对REST的理解,看了这篇文章: http://kb.cnblogs.com/page/186516/ 5个关键词 详解: 统一接口 6个主要特征 架构风格: 阅读全文
posted @ 2016-10-17 11:23 blcblc 阅读(553) 评论(0) 推荐(0)
摘要: 用sliding window的方法,之前还有个k不同元素好像也是类似的思路。有时间可以去复习下。 阅读全文
posted @ 2016-10-16 22:21 blcblc 阅读(983) 评论(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 阅读(695) 评论(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 阅读(414) 评论(0) 推荐(0)
摘要: 我自己做出来的,分了几种情况来考虑。(再后面有加了注释的版本) 以下是加了注释的版本: 准备发表在Discuss版: https://discuss.leetcode.com/category/549/strong-password-checker 阅读全文
posted @ 2016-10-16 15:41 blcblc 阅读(1214) 评论(0) 推荐(0)
摘要: https://leetcode.com/problems/arithmetic-slices/ public class Solution { public int numberOfArithmeticSlices(int[] A) { if (A.length < 3) { return 0; } int... 阅读全文
posted @ 2016-10-16 14:52 blcblc 阅读(270) 评论(0) 推荐(0)
摘要: https://leetcode.com/problems/fizz-buzz/ public class Solution { public List fizzBuzz(int n) { List lst= new ArrayList(); for (int i=1; i<=n; i++) { if (i % 15 == 0... 阅读全文
posted @ 2016-10-16 14:21 blcblc 阅读(343) 评论(0) 推荐(0)
摘要: https://leetcode.com/problems/battleships-in-a-board/ // 采用的是排除法,看船的最后一个节点 public class Solution { public int countBattleships(char[][] board) { int rows = board.length; int c... 阅读全文
posted @ 2016-10-16 14:15 blcblc 阅读(296) 评论(0) 推荐(0)
上一页 1 ··· 276 277 278 279 280 281 282 283 284 ··· 295 下一页