Java - Time complexity of String.chartAt(i) ?
3268

In all problems time complexity String.charAt(i) is considered as 1. I understand it is true for array. But for string also O(1)?

Comments (3)