摘要: 抓住知识型工人将是未来四分之一世纪企业成功的关键。下面就是Google在这方面的做法。 在Google,我们认为商业管理学的宗师彼得•德鲁克对于如何管理“知识型员工”的理解最为深刻。毕竟,这个词是由德鲁克于1959年发明。德鲁克说知识型员工相信自己拿工资是为了出效率,而不是为了完成朝九晚五的呆... 阅读全文
posted @ 2015-07-30 14:58 Sparkles 阅读(229) 评论(0) 推荐(0) 编辑
摘要: 转自知乎http://www.zhihu.com/question/19732473同步和异步关注的是消息通信机制(synchronous communication/ asynchronous communication)所谓同步,就是在发出一个*调用*时,在没有得到结果之前,该*调用*就不返回。... 阅读全文
posted @ 2015-07-13 14:38 Sparkles 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 给出一个有序数组,假设其为升序,随机找到一个点,将这个点后面的序列移到数组前面,构成一个新的序列。要求对这个新的数组进行查找,找不到返回-1,否则返回其在数组中的位置。比如输入数组[7,8,9,1,2,3,4,5,6]查找1,返回3;查找8,返回1;查找0,返回-1;int searchDisord... 阅读全文
posted @ 2015-06-09 16:07 Sparkles 阅读(569) 评论(0) 推荐(0) 编辑
摘要: STL容器迭代器存在失效的情况,需要了解STL容器的实现方式,才能理解那种迭代器在何种情况下会失效。Vector,Vector迭代器的实质是指针,而vector空间是连续的,在分配空间的时候,vector实际分配的空间一般会大于所需的空间,可以通过capacity来获得vector实际分配的空间大小... 阅读全文
posted @ 2015-04-14 15:09 Sparkles 阅读(405) 评论(0) 推荐(0) 编辑
摘要: 假设某无序数组A,首尾元素都是0,其余元素值都大于零,且不重复。每一个数值都代表一个高度。要求找出A[1] 到A[N-2]之间的任一高点(高点定义是:某点的值大于其前后元素值),要求时间复杂度为O(Log(N)).比如数组{0,8,9,4,5,1,3,6,7,0},其中高点为9,5,7. ... 阅读全文
posted @ 2014-07-24 10:48 Sparkles 阅读(164) 评论(0) 推荐(0) 编辑
摘要: Right click ‘Computer’ and select ‘Properties’;Click the ‘Advanced system settings’ and in the dialog tab of ‘Advanced’ click button ‘Environment Vari... 阅读全文
posted @ 2014-07-22 18:10 Sparkles 阅读(202) 评论(0) 推荐(0) 编辑
摘要: What would happen if we compile and run this code ?void main(){ // Option A. char str1[] = "example"; str1[1] = 'a'; // Option B. ... 阅读全文
posted @ 2014-07-16 23:18 Sparkles 阅读(114) 评论(0) 推荐(0) 编辑
摘要: Size of Data TypesAlways use sizeof() to get the size of types(sizeof(char), sizeof(short), sizeof(int)...)Do not depend on the order of evaluation in... 阅读全文
posted @ 2014-07-16 13:37 Sparkles 阅读(87) 评论(0) 推荐(0) 编辑
摘要: 一个小题目,模拟stof()功能,网上答案很多,但是感觉都不够简洁。主要是整数部分和小数部分实现由一定区别,这里尝试不区分整数和小数部分,先忽略小数点,然后最后在做一个除操作。比如输入:100.123,先转换为100123,然后除1000float _stof(string s){ float... 阅读全文
posted @ 2014-05-22 00:14 Sparkles 阅读(167) 评论(0) 推荐(0) 编辑
摘要: 这两个概念在C#和Java类似,从语法上看Interface和abstract class都不能实例化。可以继承多个Interface,但不能继承多个abstract class。继承Interface的子类必须实现Interface全部的方法,而abstract class子类可以选择是否实现基类... 阅读全文
posted @ 2014-05-21 00:43 Sparkles 阅读(193) 评论(0) 推荐(0) 编辑