系统只需要存最后一个人汇报的蓝帽子奇偶数,和current 人听到的蓝帽子的个数。只需要两个变量,所以是O(1)..
其实,我的空间复杂度只是O(1)而已.
本帖于 2011-12-12 02:34:33 时间, 由版主 笑比哭好 编辑
系统只需要存最后一个人汇报的蓝帽子奇偶数,和current 人听到的蓝帽子的个数。只需要两个变量,所以是O(1)..
WENXUECITY.COM does not represent or guarantee the truthfulness, accuracy, or reliability of any of communications posted by other users.
Copyright ©1998-2025 wenxuecity.com All rights reserved. Privacy Statement & Terms of Use & User Privacy Protection Policy