主题:求教大家一个算法问题 -- looklook
共:💬24 🌺10 新:
有人告诉我,不计存储空间,以这个序列的最大值N建一个数组,然后将序列中的每个数作数组下标写进数组,写两次的就是。这是一种hash方法。
- 相关回复 上下关系8
🙂求教大家一个算法问题 looklook 字278 2006-05-05 11:43:43
🙂我在另外一个地方问
🙂这就相当于SQL中最常用的方法啊,select *,count(*) as N having N=2; wsxx 字0 2006-05-18 02:31:11
🙂這不是pigeon hole sorting的算法嗎:) 1 wildpig 字0 2006-05-06 02:37:29
🙂这是个经典题目, 答案的确如此。原题是这样的: 1 萝卜酒 字122 2006-05-06 01:11:16
🙂Variation of the classic issue. bigbug 字462 2006-05-07 16:12:30
🙂not the most efficient method 小章 字397 2006-05-13 15:06:12
🙂Yes, it's the solution for Microsoft interview question. bigbug 字126 2006-05-20 01:38:24