There are n doors in an alley. Initially they are all shut. You have been tasked to go down the alley n times, and open/shut these doors in a particular manner:
Given n doors, return the list of open doors.
Example:
Let's say n = 3.
So:
Input n = 3 Output y is 1
1 player likes this solution
Tags
MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi
Learn moreOpportunities for recent engineering grads.
Apply Today
15 players like this problem
15 players like this problem