MCPcopy
hub / github.com/qiyuangong/leetcode / pop

Method pop

python/225_Implement_Stack_using_Queues.py:67–73  ·  view source on GitHub ↗

:rtype: nothing

(self)

Source from the content-addressed store, hash-verified

65 self.queue1 = temp
66
67 def pop(self):
68 """
69 :rtype: nothing
70 """
71 self.queue1.pop(0)
72 if len(self.queue1):
73 self.curr_top = self.queue1[0]
74
75 def top(self):
76 """

Callers 7

sumOfLeftLeavesMethod · 0.95
dfsMethod · 0.95
convertBSTMethod · 0.95
maxAreaOfIslandMethod · 0.95
pushMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected