CodingReported in a candidate post, Apr 2024
Minimum attention each student needs by neighbouring scores
Filed under CodingMart
The question
Each student gets at least one attention, and students with lower scores than neighbours get more, e.g. [5,1,2,6,3,4] gives [1,3,2,1,2,1].
No write-up yet. Related questions below have one.
Related CodingMart questions
Collected from public candidate posts and coding forums. Updated Nov 2026.