Num Players

Problem Overview

  • Determine how many players level up based on end-of-round scores and a cutoff rank.
  • Input: k (cutoff rank) and scores array; Output: integer count; constraints: 1<=n<=1e5, 0<=scores[i]<=100, k<=n.
  • Ranking ties share the same rank (e.g., 1,1,1,4); any player with score 0 cannot level up.
  • Real-world context: video game leaderboard and progression.
  • This coding interview problem is an Ibm interviews interview question.

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Input Variables
Execution Result: