LeetCode 870. Advantage Shuffle | Python

preview_player
Показать описание
March LeetCoding Challenge 2021
___________________________________________________________________________
Given two arrays A and B of equal size, the advantage of A with respect to B is the number of indices i for which Ai is bigger than Bi

Return any permutation of A that maximizes its advantage with respect to B.
___________________________________________________________________________

#LeetCode #MarchLeetCodingChallenge2021 #Python #870 #AdvantageShuffle
Рекомендации по теме
visit shbcf.ru