I see brain teasers as a way to foster a programming mindset, and I connect an unintuitive indexing convention with many off-by-one errors.
I said brain teasers are “Great for fostering a programming brain 😆.”
I said many off-by-one errors are rooted in how unintuitive it is that the largest index is .length - 1.
I made this remark in a reply to @gilbert; the point was the unintuitive relationship between length and the largest valid index.