Swift: Fast way to increment part of an integer array
I have an array of increasing integers like so: [0, 5, 23, …]. The array is big (> 500T). I have to find all elements larger than an input value x and add 1 to each of them.
I have an array of increasing integers like so: [0, 5, 23, …]. The array is big (> 500T). I have to find all elements larger than an input value x and add 1 to each of them.