此C片段是合并算法实现的一部分:
out[i++] = (in1[i1] < in2[i2]) ? in1[i1++] : in2[i2++];
有人可以解释它是如何工作的吗?
c algorithm merge
algorithm ×1
c ×1
merge ×1