Search
⌘K

Leetcode 2512. Reward Top K Students

Given lists of positive and negative words and one feedback report per student, compute each student's score (+3 per positive word, -1 per negative word) by scanning their report text, then return the top k student IDs ranked by descending score with ties broken by smaller ID (use hash sets for word lookup and sort or a heap to select top k).


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Comments

Your account is free and you can post anonymously if you choose.