摘要:
What is MVC(Model View Controller)? Explained by ordering a drink from a bartender. Model: Structures your data in a reliable form and prepares it bas 阅读全文
摘要:
Basic Concept for Graph self loop: an edge that connects a vertex to itself parallel: edges: two edges are parallel if they connect the same pair of v 阅读全文
摘要:
155. Min Stack 思路: 两种解法: 1. 两个栈,一个栈存所有的element, 另一个栈存最小的当前栈中的最小元素, java class MinStack { Stack stackMin; //store the min element Stack stack; //int mi 阅读全文
摘要:
Solution1: Reverse and Compare 翻转整个Linked List, 然后用两个指针进行逐一比对 Solution2: Iterative Approach use Stack java class Result { public ListNode node; public 阅读全文