title: What is the time complexity when accessing an array element in ruby?
body: <p>I am aware that in statically typed languages such as C/C++, accessing an array element takes O(1). What would be the case for ruby?</p>
  
  <p>Let's say I have an array <code>a = [1, "Hello", true]</code>. What would be the time complexity if I have to access <code>a[1]</code></p>