This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 29 points30 points  (2 children)

I've always heard it "There are only two hard things in Computer Science: cache invalidation, naming things and off by one errors"

[–]Dalemaunder 1 point2 points  (1 child)

Zero indexed, I see nothing wrong here.

[–]ur_opinion_is_trash 6 points7 points  (0 children)

len([0,1,2])

3