Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
rings
#10
for random access it may be sub-optimal, but as the docs state
Quote:Deques are a generalization of stacks and queues (the name is pronounced “deck” and is short for “double-ended queue”). Deques support thread-safe, memory efficient appends and pops from either side of the deque with approximately the same O(1) performance in either direction.
I may misunderstand your point though
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply


Messages In This Thread
rings - by Skaperen - Oct-15-2020, 03:26 PM
RE: rings - by Gribouillis - Oct-15-2020, 07:43 PM
RE: rings - by buran - Oct-15-2020, 08:18 PM
RE: rings - by ndc85430 - Oct-16-2020, 02:35 PM
RE: rings - by Skaperen - Oct-16-2020, 06:55 PM
RE: rings - by metulburr - Oct-17-2020, 11:23 AM
RE: rings - by Gribouillis - Oct-17-2020, 11:47 AM
RE: rings - by buran - Oct-17-2020, 02:58 PM
RE: rings - by Gribouillis - Oct-17-2020, 03:05 PM
RE: rings - by buran - Oct-17-2020, 03:12 PM
RE: rings - by Gribouillis - Oct-17-2020, 03:25 PM
RE: rings - by buran - Oct-17-2020, 03:45 PM
RE: rings - by Gribouillis - Oct-17-2020, 04:10 PM
RE: rings - by Skaperen - Oct-19-2020, 08:37 PM
RE: rings - by Skaperen - Oct-19-2020, 08:39 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020