Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
goatlover
on Aug 25, 2022
|
parent
|
context
|
favorite
| on:
Why do arrays start at 0?
Wait, why would range(3) start at 0 and not 1 in a 1-based language?
weavejester
on Aug 25, 2022
[–]
You said: "I don't understand why 0 ≤ i ≤ N wouldn't have worked instead". Was that a typo? Did you mean 0 < i ≤ N?
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: