一些奇技淫巧

Posted by 云起 on 2022-10-08
Estimated Reading Time 1 Minutes
Words 37 In Total
Viewed Times

把下标排序,排序逻辑用数组元素

870. 优势洗牌 - 力扣(LeetCode)

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 !