Return
Styles:
Pseud0ch
,
Terminal
,
Valhalla
,
NES
,
Geocities
,
Blue Moon
.
Entire thread
[Discussion] 0 indexing -vs- 1 indexing
1
Name:
Sagey McSagerson
2011-04-05 23:03
Discuss: Which is superior and why. Go go go go go
81
Name:
Anonymous
2011-04-07 8:15
>>79
Enjoy your O(n).
82
Name:
Anonymous
2011-04-07 9:00
>>81
Python doesn't cache the length?
83
Name:
Anonymous
2011-04-07 10:23
>>82
Even if it does, you still have to walk the list to the
n
th element. Else, it's not a list, but a fucking dynamic array and you should not call it a list.
84
Name:
Anonymous
2011-04-07 10:53
>>83
You should relax.
85
Name:
Anonymous
2011-04-07 10:59
>>83
Maybe you shouldn't call your degenerate binary trees "lists" instead?
86
Name:
Anonymous
2011-04-07 12:17
>>85
I call them nil-termined chain of cons cells.
87
Name:
Anonymous
2011-04-07 15:03
>>83
Random Access List doesn't necessarily mean Dynamic Array.
http://www.eecs.usma.edu/webs/people/okasaki/pubs.html#fpca95
88
Name:
Anonymous
2011-04-07 15:59
>>87
True, but Python ``lists'' are just dynamic arrays.
89
Name:
Anonymous
2011-04-07 17:47
>>88
A list in the context of Python is of course a PyList object, your semanticism is no good here.
Newer Posts
Don't change these.
Name:
Email:
Entire Thread
Thread List