1/52
Loading...
📋Let's check the problem
Given 7 students' scores. What rank is 88 (in red)?
🔒
Loading...
Given 7 students' scores. What rank is 88 (in red)?
Given an array of N student scores, find the rank of a specific student. Rank starts from 1, with higher scores having higher ranks.
scores = [78, 95, 62, 88, 73, 91, 85], targetIndex = 3
3
88 is rank 3, after 95 and 91.