Chairs Requirement

Problem Overview

  • Determine the minimum number of chairs to buy so all workers are seated across each simulation in a workroom scenario.
  • Input: an array of strings; each string is a sequence of C, R, U, L events; Output: an integer per string with the minimal chairs required.
  • Events represent employees arriving, leaving, or moving to/from meetings, affecting chair availability.
  • Real-world context: office seating capacity planning; from Ibm interviews and suited for a coding interview, an interview question, or a practice problem.

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: