Count the valid Active/Idle configurations of warehouse robots given thresholds.
Unlock detailed company stats for this questionUpgrade
At an Amazon warehouse there are n robots; arr[i] is the threshold of the i-th robot. Each robot is either Active (operating) or Idle (waiting for tasks). A configuration is valid if: for every Active robot, the total number of active robots is >= arr[i]; for every Idle robot, the total number of idle robots is strictly < arr[i]. Each robot must be assigned exactly one state, and a configuration is valid only if no robot violates its condition. Given arr, return the number of valid configurations.
Format · Amazon SDE intern on-campus OA, March 2026.
Community answers
No answers contributed by the community yet.
Related questions
Count the valid Operating/Standby configurations of robots.Related courses

Course

Course
Course
