阅读背景:

当在PHP中的平面数组中给出它时,从层次结构中有效地修剪无效分支

来源:互联网 

I have a flat list of items. Some of the items in the list are parents of other items in the list. I need to go through each item, and make sure it's not invalid. Each item has an expiration time, and an item is invalid if it's own or any of it's parent's expiration times have passed. How can I efficiently remove all invalid items from the list?I have a flat list of items. Some of the items




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: