2

I have my algorithms exam a day after so I'm on Hackerearth trying to solve some questions and many questions there explicitly require you to consider arrays to be 1 indexed. I'm like dude wtf? why?

Comments
  • 1
    One word: ada. Although now that I think about it, it does seem like 1 indexing would make array implementation easier for languages that don't provide an explicit pointer type/operator.
  • 1
    A lowest index of 1 is not unusual with pseudo code.
    Some consider it more intuitive.
Add Comment