16 ms·An implementation using TypedArray should be in constant time.by hajile 3y agoAn implementation using TypedArray should be in constant time.