把下标排序,排序逻辑用数组元素
sort(idx,idx+n,[&](int i,int j){return nums2[i]<nums2[j];});
If you like this blog or find it useful for you, you are welcome to comment on it. You are also welcome to share this blog, so that more people can participate in it. If the images used in the blog infringe your copyright, please contact the author to delete them. Thank you !