摘要: let say, we want to find the bottom left node in a tree.one way to do it is using global vars: to avoid using global vars, we can write it in this way 阅读全文
posted @ 2017-08-22 10:26 zmiao 阅读(121) 评论(0) 推荐(0) 编辑
摘要: Hexo is a good tool to build a personal blog.Here are some good reference:1: https://hexo.io/zh-cn/docs/index.html2: https://homulilly.com/post/hexo-l 阅读全文
posted @ 2017-06-05 07:11 zmiao 阅读(89) 评论(0) 推荐(0) 编辑
摘要: If you have a git repo and now you want to make it a plain filesystem tree .. (removing the git tracking system), you can do the following: 阅读全文
posted @ 2017-01-15 05:29 zmiao 阅读(96) 评论(0) 推荐(0) 编辑
摘要: For example, every ten seconds I got a server response time, I want to know the 90 percentile response time in real time (update dynamically). How can... 阅读全文
posted @ 2015-09-26 04:45 zmiao 阅读(114) 评论(0) 推荐(0) 编辑
摘要: Reference:http://stackoverflow.com/questions/3042412/with-n-no-of-nodes-how-many-different-binary-and-binary-search-trees-possibRecursion:t(0) = 1t(1)... 阅读全文
posted @ 2015-05-13 17:09 zmiao 阅读(153) 评论(0) 推荐(0) 编辑
摘要: Reference:https://webapp-improved.appspot.com/tutorials/quickstart.nogae.htmlStep 1: install pipStep 2:$ pip install WebOb$ pip install Paste$ pip ins... 阅读全文
posted @ 2015-05-11 10:40 zmiao 阅读(189) 评论(0) 推荐(0) 编辑
摘要: For example, if I want to check if I have turnin my proj1 of cs130a successfully, I just use this command:ls -l ~cs130a/TURNIN/proj1Then, just check i... 阅读全文
posted @ 2015-05-08 02:52 zmiao 阅读(115) 评论(0) 推荐(0) 编辑
摘要: It can be inserted anywhere. Note that if you insert it in the beginning the TC will be O(#s +c), but it is also O(#s+ n). Remember that the TC is an ... 阅读全文
posted @ 2015-05-01 06:45 zmiao 阅读(225) 评论(0) 推荐(0) 编辑
摘要: use following command to see the current config:$ git config --listuse following command to config the username and email:$ git config user.name "YOUR... 阅读全文
posted @ 2015-04-28 04:16 zmiao 阅读(241) 评论(0) 推荐(0) 编辑
摘要: NETLINK:http://netlinksockets.sourceforge.net/index.html 阅读全文
posted @ 2015-04-25 16:06 zmiao 阅读(144) 评论(0) 推荐(0) 编辑