Friend sent today a very special topic:
Topics:There are two array a,b,Size n,Any of the values of the array elements,Disorder;
Requirements:Through the exchange of a,Elements in the b,Elements of array a and b elements in the array, and the difference between the minimum。
I feel familiar at first glance the problem ... ... And domestic c exams almost,But a closer look seems to be a bit more difficult,Do not look like that has a clue what the problem。Ok,I asked to know,This is Huawei's interview questions。
Is, after all, interviews,So it is a little difficult。- But after all, is the ah ...[……]