私はJavaの実装でキューについて読んでいました。私は、次のタスクを実装する: public class DoublyLinkedList
{
private Node first; // the first Node in the list
private Node last; // the last Node in the list
private class
以下は、私が取り組んでいるコードのブロックです。それは学校のためのものです。これについてはかなりの間作業していて、たぶん私はちょうど試してみました。誰かが私の方法の誤りを私に説明することができましたか? def pop(self, idx=-1):
"""Deletes and returns the element at idx (which is the last element,