Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsLegalLoc ¶
IsLegalLoc 判断是否在同一行或同一列、是否在同斜线上
func PrintArray2 ¶
PrintArray2 输出二维数组,步骤,先遍历最外层数组,再遍历一唯数组
Types ¶
type Location ¶
type Location struct {
// contains filtered or unexported fields
}
func NewLocation ¶
type QueenList ¶
type QueenList struct { QList *list.LinkedList RW sync.RWMutex }
QueenList thread safe
func NewQueenList ¶
func NewQueenList() *QueenList
func (*QueenList) GetList ¶
func (ql *QueenList) GetList() *list.LinkedList
func (*QueenList) RemoveFirst ¶
func (ql *QueenList) RemoveFirst()
Click to show internal directories.
Click to hide internal directories.