摘要:
or this question, the key part is: what is the state of the game? Intuitively, to uniquely determine the result of any state, we need to know: A secon 阅读全文
摘要:
public class RetainBestCache { private Map cache;. 鍥磋鎴戜滑@1point 3 acres private Map> rankingOfObject;.鏈枃鍘熷垱鑷�1point3acres璁哄潧 private DataSource dataSource; private int maxSiz... 阅读全文
摘要:
基本思路就是递归的把k sum化成k-1 sum,直到变成trivial的2sum来做。 可以用两个hashset 存元素,sum ,这样就是store O(n), get(O(1)) 阅读全文