摘要:
http://blog.baozitraining.org/2014/09/how-to-prepare-system-design-questions.html如何准备面试中的系统设计问题一直都是包子的学员,尤其是fresh new grad比较头疼的一个问题。我们的好朋友在mitbbs上面与大家... 阅读全文
摘要:
这题的边边角角太多了。写的挺蛋疼的。 1 class Solution {//by myself and AC 2 public: 3 vector fullJustify(vector &words, int L) { 4 vector res; 5 vec... 阅读全文
摘要:
Given a string S, find the longest palindromic substring in S.Note:This is Part II of the article:Longest Palindromic Substring. Here, we describe an ... 阅读全文
摘要:
这道题就是大数运算。lexi's的想法很好,在操作之前先把num1和num2给逆置,方便操作。Tenos的文章通过一张图把计算过程直观的展示出来。 1 class Solution { 2 public: 3 string multiply(string num1, string num2)... 阅读全文
摘要:
http://yucoding.blogspot.com/2013/02/leetcode-question-123-wildcard-matching.html几个例子:(1)acbdeabda*c*d(2)acbdeabdkadfaa*c*dfaAnalysis:For each element... 阅读全文
摘要:
一共用两个栈。一个栈elements用来放所有数据,另一个栈mins专门用来存放最小值。入栈时所有元素都能加入elements栈,但只有当前元素小于等于mins栈的栈顶元素时才能加入mins栈。 1 class MinStack { 2 public: 3 void push(int x) ... 阅读全文
摘要:
Problem Statement(link):Given a 2D board containing'X'and'O', capture all regions surrounded by'X'.A region is captured by flipping all'O's into'X's i... 阅读全文
摘要:
linux下 ss -i 可显示rto.how to display tcp rtohttp://linuxaleph.blogspot.com/2013/07/how-to-display-tcp-rto.html 1 /* 2 * ss.c "sockstat", soc... 阅读全文
该文被密码保护。 阅读全文
摘要:
In most cases you will need root permission to be able to capture packets on an interface. Using tcpdump (with root) to capture the packets and saving... 阅读全文