随笔分类 - Java学习
该文被密码保护。
该文被密码保护。
摘要:每次都误以为是 substring(startIndex, length) 其实是 substring(startIndex, endIndex) 嗯 Java/Scala 跟 C++ 是不一样的。
阅读全文
该文被密码保护。
该文被密码保护。
摘要:刚刚那道BST的题目,也用到了priority_queue,那是那个没有定义比较函数。 那么下面这个,就要定义比较函数。 它的模板声明带有三个参数,priority_queue<Type, Container, Functional> struct cmp{ bool operator() ( No
阅读全文
摘要:https://leetcode.com/problems/data-stream-as-disjoint-intervals/?tab=Description 这道题目是合并间隔的经典题目。 https://discuss.leetcode.com/topic/46887/java-solutio
阅读全文
摘要:Java是这样的: Map<Character, Integer> map = new HashMap<Character, Integer>(); map.containsKey(c) map.put(c, 1); int x = map.get(temp);
阅读全文
摘要:见:http://blog.csdn.net/bbirdsky/article/details/45368709
阅读全文
摘要:看了这篇文章:http://www.cnblogs.com/LBSer/p/4753112.html 《如何健壮你的后端服务?》 觉得写得蛮好的。 把提纲摘录一下。具体的内容可以去看原文。 “怀疑第三方,防备使用方,做好自己”。 1 怀疑第三方 1.1 有兜底,制定好业务降级方案 我自己的例子:数据
阅读全文