回複:能否詳細說明一下,或者給出偽代碼?學習學習

來源: GoldIsGold 2009-05-09 18:28:15 [] [舊帖] [給我悄悄話] 本文已被閱讀: 次 (449 bytes)
回答: 回複:第一題說明GoldIsGold2009-05-09 17:52:05
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 - .

所有跟帖: 

有待仔細考慮。尤其是對"big hotel"的case,有huge number of rooms. -戲雨飛鷹- 給 戲雨飛鷹 發送悄悄話 戲雨飛鷹 的博客首頁 (66 bytes) () 05/10/2009 postreply 11:48:07

請您先登陸,再發跟帖!

發現Adblock插件

如要繼續瀏覽
請支持本站 請務必在本站關閉Adblock

關閉Adblock後 請點擊

請參考如何關閉Adblock

安裝Adblock plus用戶請點擊瀏覽器圖標
選擇“Disable on www.wenxuecity.com”

安裝Adblock用戶請點擊圖標
選擇“don't run on pages on this domain”