MCPcopy Create free account
hub / github.com/HarshCasper/NeoAlgo / pop

Method pop

Go/ds/stack/stack_using_queue/stack_using_queue.go:150–165  ·  view source on GitHub ↗

pop(): if stack is not empty then first it will remove all the element from pushQueue and insert them in popQueue and return the poped element by removing popQueue's first element and finally it will again insert all the element of popQueue to pushQueue by removing them

()

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

mainFunction · 0.95

Calls 3

isEmptyMethod · 0.95
enQueueMethod · 0.45
deQueueMethod · 0.45

Tested by

no test coverage detected