anonymous
  • anonymous
week 6. Ex 3.6-your first class. Queue class. I'm assuming that this class needs to be a list? I can not work out how to incorporate a list into a class and how to modify it!..Or am i barking up the wrong tree with this one? Any assistance would be welcome!
MIT 6.189 A Gentle Introduction to Programming Using Python (OCW)
  • Stacey Warren - Expert brainly.com
Hey! We 've verified this expert answer for you, click below to unlock the details :)
SOLVED
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.
schrodinger
  • schrodinger
I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!
anonymous
  • anonymous
petew71: You could implement the Queue using a list, but there other other choices as well. Here is a an implementation of the Queue class using a list: http://ideone.com/zKA2YP For another implementation that does not use a list, and is a little more complex, take a look at this one: http://ideone.com/WCxNBy
anonymous
  • anonymous
Hi there AppylPye. Thanks for your response! I asked around and came up with a program very similar to your list example. Though my remove method is a little different. http://pastebin.com/2EnAHEYM Your other, more complex, program is far better than i can do at the moment! Very well done!

Looking for something else?

Not the answer you are looking for? Search for more explanations.