You’re given a group of individuals where everyone has a specific amount of money and a different level of quietness. Additionally, you’re given an array richer = quiet.
Return an integer array res, where res[i] = y. If y has the lowest value in quiet[y] among all individuals, who have equal or more money than the individual i.
Constraints:
quiet.lengthquiet[i] quiet are unique.richer.length x[i], y[i] nricher are unique.richer are all logically consistent.You’re given a group of individuals where everyone has a specific amount of money and a different level of quietness. Additionally, you’re given an array richer = quiet.
Return an integer array res, where res[i] = y. If y has the lowest value in quiet[y] among all individuals, who have equal or more money than the individual i.
Constraints:
quiet.lengthquiet[i] quiet are unique.richer.length x[i], y[i] nricher are unique.richer are all logically consistent.