Created
October 20, 2016 09:35
-
-
Save karlpokus/436325a22c882a295ab92e7ec3d098b2 to your computer and use it in GitHub Desktop.
n people take turns taking notes at the weekly meeting @Company. Whose turn is it week x?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function secretary(people, weekNumber){ | |
var index = weekNumber % people.length; | |
return people[index]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment