Hey. What is the access time for an element in slice, array, map to go? O (1)?

  • one
    for the first two, it is obvious O (1). For the map you need to look inside. Here, stackoverflow.com/questions/29677670/… say that in theory, yes, O (1), but in practice it can be much worse. - KoVadim

0