Arithmetic Time Shift Shift
1 answer
The complexity with notation O (...) is an asymptotic characteristic of the time that the algorithm takes as the input size gets larger and larger. This doesn't make sense for algorithms that can only accept a finite number of inputs. <<
can take 2 ^ 32 * 32 different inputs, hence a finite number of inputs, so it is constant time (O (1)).
+3
source to share