上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 36 下一页
摘要: 1. do not forget to intialize the data. 阅读全文
posted @ 2016-06-27 16:07 keepshuatishuati 阅读(105) 评论(0) 推荐(0) 编辑
摘要: 1 public class Logger { 2 private Map data; 3 /** Initialize your data structure here. */ 4 public Logger() { 5 data = new HashMap(); 6 } 7 8 /** Returns true... 阅读全文
posted @ 2016-06-27 12:55 keepshuatishuati 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 1. This is a parabola function. So two ends always larger than mid. 2. remember return value. 阅读全文
posted @ 2016-06-27 12:49 keepshuatishuati 阅读(122) 评论(0) 推荐(0) 编辑
摘要: Since the traversal is row by row. So the only one row count is enough. Three conditions are: 1. j == 0 (new line start) or previous column is wall. R 阅读全文
posted @ 2016-06-27 11:46 keepshuatishuati 阅读(169) 评论(0) 推荐(0) 编辑
摘要: 1. Set does not have ceiling method. Directly use TreeSet 2. ceiling > value - k, so value - ceiling < k. 3. Put 0 into set first since 0 should be th 阅读全文
posted @ 2016-06-27 11:30 keepshuatishuati 阅读(144) 评论(0) 推荐(0) 编辑
摘要: 1. 300 is not included 阅读全文
posted @ 2016-06-27 11:28 keepshuatishuati 阅读(149) 评论(0) 推荐(0) 编辑
摘要: 1. 3x3 pattern board. Do not mess it up. 2. pattern counting start from 1, not 0 阅读全文
posted @ 2016-06-27 05:20 keepshuatishuati 阅读(145) 评论(0) 推荐(0) 编辑
摘要: 1 class Solution { 2 public: 3 /** 4 * @param m: An integer m denotes the size of a backpack 5 * @param A & V: Given n items with size ... 阅读全文
posted @ 2015-04-06 13:26 keepshuatishuati 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 1 class Solution { 2 public: 3 /** 4 * @param m: An integer m denotes the size of a backpack 5 * @param A: Given n items with size A[i]... 阅读全文
posted @ 2015-04-06 13:23 keepshuatishuati 阅读(131) 评论(0) 推荐(0) 编辑
摘要: 当我们在生产线上用一台服务器来提供数据服务的时候,我会遇到如下的两个问题:1)一台服务器的性能不足以提供足够的能力服务于所有的网络请求。2)我们总是害怕我们的这台服务器停机,造成服务不可用或是数据丢失。于是我们不得不对我们的服务器进行扩展,加入更多的机器来分担性能上的问题,以及来解决单点故障问题。 ... 阅读全文
posted @ 2015-04-05 14:43 keepshuatishuati 阅读(203) 评论(0) 推荐(0) 编辑
上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 36 下一页