Challenge: Beckett's Problem

Apply what you’ve learned about recursion in the coding exercises in this lesson.

Problem statement

You are given a number of actors, n, in input. Your task is to write a recursive function for Stage Directions. Indicate when which actor should Enter or Exit.

Get hands-on with 1200+ tech skills courses.