bit.shraΒΆ
x[:n] >>= times (arithmetic shift right)
times is a constant.
SignatureΒΆ
def shra n, times, x { ... }
Defined in bit/shifts.fj β lines 22β25 (view on GitHub).
ComplexityΒΆ
Time:
n(2@-1)Space:
n(2@-1)
See the complexity glossary for what @, w, dw, dbit, n mean.