3 ms·Ooh, I could copy A to B and add a final two lines: "else swap B[i] and B[j]" And now it's constant time!by jancsika 2y agoOoh, I could copy A to B and add a final two lines: "else swap B[i] and B[j]" And now it's constant time!