解析这些参数要用到gflags,确保你使用的glog支持gflags . logtostderr(bool, default=false) ???? 是否把日志输出到stderr. ???? Note: 这个参数可以设置为true,1或yes,当然也可以设置为fal...
分类:
其他好文 时间:
2014-11-27 23:48:42
阅读次数:
1208
在不记就忘了,自己在H3C沉浸中积累的一点点网络知识,这是后来看ccie或者其他资料总结的从协议方面看,只要把PDU搞定就可以了,怪不得面试官总会问这些,我却觉得是迂腐的表现,感觉人的大脑大部分应该用在思考而不是用来充当硬盘,就怪自己内存太小吧,又不太在意概念这东西,机会也就悄悄的不在意我了,最终离...
分类:
Web程序 时间:
2014-11-27 23:37:12
阅读次数:
298
/**
?*?@brief?Codeforces?Round?#279?(Div.?2)?b
?*?@file?b.cpp
?*?@author?mianma
?*?@created?2014/11/27?15:29
?*?@edited??2014/11/27?20:40
?*?@type?
?*?@note
?*/
#inclu...
分类:
其他好文 时间:
2014-11-27 22:15:41
阅读次数:
326
问题描述:
Given an array of strings, return all groups of strings that are anagrams.
Note: All inputs will be in lower-case.
基本思路:
对每个字符串进行排序,然后对排过序的字符串统计出现次数超过1次的。将这些超过1次的字符串的原始串加入结果集
代码:
...
分类:
其他好文 时间:
2014-11-27 22:11:24
阅读次数:
270
MonoBehaviour.StopCoroutineDescriptionStops all coroutines namedmethodNamerunning on this behaviour.Please note that onlyStartCoroutineusing a string ...
分类:
其他好文 时间:
2014-11-27 14:19:43
阅读次数:
146
【原题】
Given preorder and inorder traversal of a tree, construct the binary tree.
Note:
You may assume that duplicates do not exist in the tree.
【解析】
题意:根据二叉树先序遍历和中序遍历的结果,构造二叉树。跟 根据中序遍历和后序遍历结...
分类:
其他好文 时间:
2014-11-27 12:50:15
阅读次数:
155
【题目】
Given inorder and postorder traversal of a tree, construct the binary tree.
Note:
You may assume that duplicates do not exist in the tree.
【解析】
题意:根据二叉树中序遍历和后序遍历的结果,构造该二叉树。
首先明确一下,中序遍...
分类:
其他好文 时间:
2014-11-27 10:48:01
阅读次数:
117
4.6Designanalgorithmandwritecodetofindthefirstcommonancestoroftwonodesinabinarytree.Avoidstoringadditionalnodesinadatastructure.NOTE:Thisisnotnecessarilyabinarysearchtree.BTNodefind(Noden,Nodea,Nodeb)
{
if(n==a||n==b)
{
returnn;
}
intnodeMatch=nodeMatch(a...
分类:
其他好文 时间:
2014-11-27 08:02:42
阅读次数:
180
Given an array of strings, return all groups of strings that are anagrams.Note: All inputs will be in lower-case.NOTE: the return is the list of all a...
分类:
其他好文 时间:
2014-11-27 06:47:27
阅读次数:
170
Implement pow(x, n).Analysis:x^n = x^(n/2)*x^(n/2) (*x, if n is odd).NOTE: We need consider n0) 8 res = powRecur(x,n); 9 else{10 ...
分类:
其他好文 时间:
2014-11-27 06:44:27
阅读次数:
209