摘要:
Ruby is a true object oriented programming language.Ruby is a server-side scripting language similar to Python and PERL. Ruby can be embedded into HTM 阅读全文
摘要:
Some Git commands: Before dev: Check Branch: git branch Checkout an existing branch : git checkout XXX Get Latest code from remote branch: git pull Ch 阅读全文
摘要:
Client side applications Introduction: It is built to create dynamic and rich web applications. It is built with MYYM pattern. It serves a single purp 阅读全文
摘要:
Promise is use 阅读全文
摘要:
Reduce http requests: Use image map: Cache: Empty Cache & Primed Cache: empty cache is the browser which does not cache any components of the page. Th 阅读全文
摘要:
System design First no limitation Then enroll the real world: Horizontal scaling Vertical Scaling Load balancer: server farm: increase security Big da 阅读全文
摘要:
Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations: get and set. get(key) - Get the 阅读全文
摘要:
public class Heap where T : IComparable { private List elements = new List(); public int GetSize() { return elements.Count; } public ... 阅读全文
摘要:
sum无非两种情况,用hashtable 或者用 2 pointer。 Hashtable的时候多不需要考虑重复问题,但是2 pointer往往要考虑重复问题。解决重复问题的方法为初始时判断,如果不是i=0或者nums[i] != nums[i-1],那就跳过。这样保证第一个值不可能是一样的。同理, 阅读全文
摘要:
Step 1: Who is going to use it. How they are going to use it. Or: Who, What, Where, When, how, Why Step 2: Define Core Objects. Example: Resaturant: T 阅读全文