I couldn't find relevant answers to this online.
If I do int pos = iterator1 - iterator2
would this be an O(n) or a O(1) operation.
time complexity of subtraction of iterators
I couldn't find relevant answers to this online.
If I do int pos = iterator1 - iterator2
would this be an O(n) or a O(1) operation.