MCPcopy Index your code
hub / github.com/TheAlgorithms/Go / Len

Method Len

structure/queue/queuelinklistwithlist.go:63–65  ·  view source on GitHub ↗

Len it will return the length of list

()

Source from the content-addressed store, hash-verified

61
62// Len it will return the length of list
63func (lq *LQueue) Len() int {
64 return lq.queue.Len()
65}
66
67// Empty is check our list is empty or not
68func (lq *LQueue) Empty() bool {

Callers 1

TestQueueFunction · 0.95

Calls 1

LenMethod · 0.65

Tested by 1

TestQueueFunction · 0.76