← Nykaa questions
CodingReported in a candidate post, Jan 2024

Minimum number of resources for computation requests

Filed under Nykaa

The question

Given an array of ratings for computation requests, allocate resources such that each request gets at least one, and requests with higher ratings than their neighbors get more resources. Find the minimum total resources needed.

No write-up yet. Related questions below have one.

Collected from public candidate posts and coding forums. Updated Nov 2026.