回复:有朋友的公司招程序员, 要特别强的。 附三道编程题目

来源: hello2 2009-05-09 15:16:44 [] [博客] [旧帖] [给我悄悄话] 本文已被阅读: 次 (274 bytes)
第一题不懂,唯一的就是set(没打扫过的)会越来越小,所以这是vector的话,每分钟扫描一边就是。不能用list.

第二题如果是整数好办,如果有小数就不知道了。

第三题我在一个它妈的金融软件公司考过,是3个list,不是2个。过了半小时总算搞出来了。这鸟公司开始根本没通知我要考试。

所有跟帖: 

第三题是不是一个list,或栈就行了? -feicen- 给 feicen 发送悄悄话 (101 bytes) () 05/09/2009 postreply 16:42:02

或者不用list或栈,直接读文件,比较,然后写文件 -feicen- 给 feicen 发送悄悄话 (66 bytes) () 05/09/2009 postreply 16:58:57

回复:或者不用list或栈,直接读文件,比较,然后写文件 -hello2- 给 hello2 发送悄悄话 hello2 的博客首页 (69 bytes) () 05/09/2009 postreply 17:01:02

如果排序的话,那就太简单了,这个题是open的,是考实际问题解决 -feicen- 给 feicen 发送悄悄话 (83 bytes) () 05/09/2009 postreply 17:04:40

但我还是觉得是考排序:) -戏雨飞鹰- 给 戏雨飞鹰 发送悄悄话 戏雨飞鹰 的博客首页 (0 bytes) () 05/09/2009 postreply 17:34:54

meant to follow up with feicen. -戏雨飞鹰- 给 戏雨飞鹰 发送悄悄话 戏雨飞鹰 的博客首页 (0 bytes) () 05/09/2009 postreply 17:36:42

考排序的话就不会说给的两个原文件是排好的了 -feicen- 给 feicen 发送悄悄话 (199 bytes) () 05/09/2009 postreply 17:48:13

hmm. makes sense. thanks. -戏雨飞鹰- 给 戏雨飞鹰 发送悄悄话 戏雨飞鹰 的博客首页 (0 bytes) () 05/09/2009 postreply 17:59:21

回复:考排序的话就不会说给的两个原文件是排好的了 -hello2- 给 hello2 发送悄悄话 hello2 的博客首页 (99 bytes) () 05/09/2009 postreply 18:38:17

无论如何,我认为feicen给的算法是performance最好的:) -戏雨飞鹰- 给 戏雨飞鹰 发送悄悄话 戏雨飞鹰 的博客首页 (0 bytes) () 05/10/2009 postreply 11:40:23

系统page时会不停移动数据块组合成大块内存---超级慢 -what124- 给 what124 发送悄悄话 (305 bytes) () 05/11/2009 postreply 05:26:51

同意你对算法的分析。跟feicent说的一致。关于女程序员的说法, -戏雨飞鹰- 给 戏雨飞鹰 发送悄悄话 戏雨飞鹰 的博客首页 (340 bytes) () 05/11/2009 postreply 07:01:35

第一题也没有完全弄懂,具体的要求功能,所以不好说 -feicen- 给 feicen 发送悄悄话 (0 bytes) () 05/09/2009 postreply 17:00:25

as I remember, binary, oct and hex are only -yma16- 给 yma16 发送悄悄话 yma16 的博客首页 (31 bytes) () 05/09/2009 postreply 19:04:29

请您先登陆,再发跟帖!

发现Adblock插件

如要继续浏览
请支持本站 请务必在本站关闭/移除任何Adblock

关闭Adblock后 请点击

请参考如何关闭Adblock/Adblock plus

安装Adblock plus用户请点击浏览器图标
选择“Disable on www.wenxuecity.com”

安装Adblock用户请点击图标
选择“don't run on pages on this domain”