Message118305
Hello Simon,
Accessing an arbitrary element of a deque takes O(n) time, making your .index implementation O(n**2).
If you describe the kinds of operations that you need to perform efficiently, we may be able to suggest a better data structure for you to use. |
|
Date |
User |
Action |
Args |
2010-10-10 05:36:33 | stutzbach | set | recipients:
+ stutzbach, rhettinger, ned.deily, Simon.Liedtke |
2010-10-10 05:36:33 | stutzbach | set | messageid: <1286688993.83.0.746678748165.issue10059@psf.upfronthosting.co.za> |
2010-10-10 05:36:32 | stutzbach | link | issue10059 messages |
2010-10-10 05:36:32 | stutzbach | create | |
|