Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LoopQueue ¶
type LoopQueue struct {
// contains filtered or unexported fields
}
func (*LoopQueue) GetCapacity ¶
type Queue ¶
type Queue interface { GetSize() int IsEmpty() bool Enqueue(interface{}) Dequeue() interface{} GetFront() interface{} }
在这一版LoopQueue的实现中,我们将不浪费那1个空间:)
type TreeNode ¶
/ Leetcode 102. Binary Tree Level Order Traversal / https://leetcode.com/problems/binary-tree-level-order-traversal/description/ / 二叉树的层序遍历 / / 二叉树的层序遍历是一个典型的可以借助队列解决的问题。 / 该代码主要用于使用Leetcode上的问题测试我们的LoopQueue。 / 对于二叉树的层序遍历,这个课程后续会讲到。 / 届时,同学们也可以再回头看这个代码。 / 不过到时,大家应该已经学会自己编写二叉树的层序遍历啦:)
Click to show internal directories.
Click to hide internal directories.