deque () else: print(DQ.peek()). 0|. Permalink. jalajpathk08. 4 weeks ago + 0 comments. Python solution using two stacks. s1 = [] s2 = [] def enqueue(x): s1.
確定! 回上一頁