用PHP实现一个双向队列

用PHP实现一个双向队列,具体代码实现以下:php class Queue { // 存储 protected $storage = array(); // 入头 public function unshift($element) { return array_unshift($this->storage,$element); } // 入尾 public function
相关文章
相关标签/搜索