[問題] 演算法
以下是一所國外研究所的考試題目,是否能用程式跟圖解來解答這個問題?
I have a computer file containing 1,000,000 non-negative integers,
in no particular order. Imagine that they are the membership numbers of
people who are enrolled in my internet club. A new person wants to join
the club, and we need to find an unused number to allocate to them. How
would you find, in a reasonable time, a number that was not already in the
file?
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 220.140.56.26
推
01/13 11:58, , 1F
01/13 11:58, 1F
推
01/13 11:59, , 2F
01/13 11:59, 2F
推
01/13 11:59, , 3F
01/13 11:59, 3F
推
01/13 12:07, , 4F
01/13 12:07, 4F
※ yaote:轉錄至看板 C_and_CPP 01/13 18:59
討論串 (同標題文章)