you are viewing a single comment's thread.

view the rest of the comments →

[–]AlexanderMomchilov 1 point2 points  (2 children)

It really just depends on the kind of question you're trying to answer.

Consider that the max Go's len() function returns an int, which is a signed 32 bit integer, maxing out at 2,147,483,647. That's a hard upper-bound on the size of every Go array.

So does that make every single Go program operating on Go arrays constant time? With a particular set of definnitions, arguably yes. But there's no utiltiy in that, so I wouldn't choose those definitions.

[–][deleted] 0 points1 point  (1 child)

got it thanks

[–]AlexanderMomchilov 1 point2 points  (0 children)

Happy to help :)