Back to Browse

LeetCode 2418. Sort the People | Interview Preparation | English | code io

1.9K views
Apr 10, 2023
11:36

2418. Sort the People You are given an array of strings names, and an array heights that consists of distinct positive integers. Both arrays are of length n. For each index i, names[i] and heights[i] denote the name and height of the ith person. Return names sorted in descending order by the people's heights. Follow us on: Instagram: https://www.instagram.com/code.i.o/?hl=en Keywords Leetcode Solution Interview Preparations Google Facebook Meta Google Interview Facebook Interview

Download

1 formats

Video Formats

360pmp429.6 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

LeetCode 2418. Sort the People | Interview Preparation | English | code io | NatokHD