FastPrepDubbing Review Status Propagation
Problems/Dubbing Review Status Propagation

Dubbing Review Status Propagation

ElevenLabs logoElevenLabs● MediumFULLTIMEONSITE INTERVIEW

Updated Nov 2026

QuestionFunctionExamplesConstraints

Problem statement

Source note: A verified ElevenLabs candidate report describes spreadsheet-backed dubbing lines, approvals or tweak requests, re-records that reopen review, and a status roll-up to files. We chose how commands are encoded and which rule wins when they conflict. Our version is about 95% the same as the reported question.

A dubbing project contains script lines grouped into media files. Every line starts PENDING. Process commands:

  • APPROVE lineId sets the line to APPROVED.
  • REQUEST_CHANGES lineId sets it to CHANGES_REQUESTED.
  • RERECORD lineId sets it to NEEDS_REVIEW, even if it was previously approved.
  • FILE fileId reports the file roll-up.

Each mutation contributes its resulting line status. A FILE command contributes CHANGES_REQUESTED if any line has that status, otherwise NEEDS_REVIEW if any line does, otherwise PENDING if any line does, and otherwise APPROVED.

Function

processDubbingReviews(lineIds: String[], fileIds: String[], operations: String[]) → String[]

Examples

Example 1

lineIds = ["L1","L2"]fileIds = ["F","F"]operations = ["FILE F","APPROVE L1","APPROVE L2","FILE F","RERECORD L1","FILE F"]return = ["PENDING","APPROVED","APPROVED","APPROVED","NEEDS_REVIEW","NEEDS_REVIEW"]

A re-recorded approved line makes the file need review again.

Example 2

lineIds = ["A","B","C"]fileIds = ["X","X","Y"]operations = ["APPROVE A","REQUEST_CHANGES B","FILE X","FILE Y"]return = ["APPROVED","CHANGES_REQUESTED","CHANGES_REQUESTED","PENDING"]

Changes requested take precedence in X, while Y remains pending.

Constraints

  • 1 <= lineIds.length = fileIds.length <= 100000
  • Line IDs are unique and every command references a known line or file.
  • 1 <= operations.length <= 100000

More ElevenLabs interview questions

  • Longest Spoken PrefixONSITE INTERVIEW · Seen Nov 2026
  • Lowest-Cost Shirt Color ScheduleOA · Seen Oct 2026
  • Minimum Magic Stones After MergesOA · Seen Oct 2026
  • Next Number with Disjoint DigitsOA · Seen Oct 2026

Similar questions at other companies

  • LRU Cache for Query ResultsAmazon · PHONE SCREEN · ONSITE INTERVIEW
  • In-Memory Filesystem CommandsPerplexity AI · PHONE SCREEN · ONSITE INTERVIEWPerplexity AI interview questions
  • LRU CacheServiceNow · PHONE SCREEN · ONSITE INTERVIEWServiceNow interview questions
  • Random Dasher Set OperationsDoorDash · ONSITE INTERVIEWDoorDash interview questions
  • Rectangle Point Coverage CountsOpenAI · PHONE SCREEN · ONSITE INTERVIEWOpenAI interview questions
  • In-Memory Vault File SystemHarvey · ONSITE INTERVIEWHarvey interview questions
  • Hash Map with Separate ChainingApplied Intuition · ONSITE INTERVIEWApplied Intuition interview questions
  • Camel CardsRippling · PHONE SCREEN · ONSITE INTERVIEWRippling interview questions
  • Design Authentication ManagerOracle · ONSITE INTERVIEWOracle interview questions
  • Hash Map with TTLNike, Inc. · ONSITE INTERVIEWNike, Inc. interview questions
All ElevenLabs interview questionsSee ElevenLabs hiring insights
Saved
class Solution {
    public String[] processDubbingReviews(String[] lineIds, String[] fileIds, String[] operations) {
      // Write your code here.
    }

}
Checking account…