Interactive Story Endings Reachability (Choices/Options)

You are given a simplified interactive-story model:

  • choices: a list of choice records. Each record has the form choice = [start, op1, op2], meaning that from node start you can pick one of tw...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: