Let's assume it's Halloween, and you're looking to go door to door to collect some candy. You've scoped out the area from prior years, and compiled a list of specific houses that you want to collect candy from.
You don't want to have to visit every house by yourself, and each house only needs to be visited once, so you decide to delegate the work amongst a group. For your Halloween empire, you've set up the following recursive algorithm to delegate the work:...
New to InterviewQs? Sign up now.
By proceeding, you agree to our Terms and Conditions and Privacy Policy.
Loading editor...