文学城论坛
+A-

回复:能否详细说明一下,或者给出伪代码?学习学习

GoldIsGold 2009-05-09 18:28:15 ( reads)

Let's see a simple example. There are only 4 rooms, initilized to 0000 (not cleaned), you print the value after 1 min, you get a number, say 3, 0011, the 1's are the bits (rooms) changed. This test question is simpler than page management in OS because the bit which have been changed to 1 will never changed back to 0 in 24 hours.
Certainly, you have to write a small function to display the 'human readable' output - .

跟帖(1)

戏雨飞鹰

2009-05-10 11:48:07

有待仔细考虑。尤其是对"big hotel"的case,有huge number of rooms.