微软面试题 之 "Add back spaces"
摘要:有两个string,str1 = "i am a boy", str2 = "iamaboy"写出下面函数的实现char* AddBackSpaces(const char* str, const set& words){ ...}传入的str是"iamaboy",words是["i", "am", "a", "boy"],期望的输出是"i am a boy".
阅读全文
posted @
2006-03-29 01:48
万俊峰Kevin
阅读(283)
推荐(0) 编辑
微软面试题 之 "remove duplicate words"
摘要:写一个程序删除给定的一个string中的重复的wordsvoid RemoveDupWords(char* str){}结果保存在str中。
阅读全文
posted @
2006-03-29 01:45
万俊峰Kevin
阅读(458)
推荐(0) 编辑
微软面试题
摘要:一.最基本题型(说明:此类题型比较简单) 1. 1到100有多少个9 2. 连续整数之和为1000的共有几组 3. U2合唱团在17分钟内得赶到演唱会场,途中必需跨过一座桥,四个人从桥的 同一端出发,你得帮助他们到达另一端,天色很暗,而他们只有一只手电筒。 一次同时最多可以有两人一起过桥,而过桥的时候必须持有手电筒,所以就 得有人把手电筒带来带去,来回桥两端。手电筒是不能用丢的方式来传递的。 四个...
阅读全文
posted @
2006-03-24 07:14
万俊峰Kevin
阅读(944)
推荐(0) 编辑
ideas on project management
摘要:1, control the scheduleIf don't know how to control the schedule, the manager will fail. Typically, for a small company, they have no enough resource to wait. If the project failed, the first person t...
阅读全文
posted @
2006-03-22 22:52
万俊峰Kevin
阅读(196)
推荐(0) 编辑