-
Notifications
You must be signed in to change notification settings - Fork 167
Open
Description
According to the description on the site, how is the answer Susan? If 7th person is to be eliminated then Susan gets eliminated in the second elimination. I think, in the for loop the n should be replaced by n-1. so that n-1 persons will be taken from the end of the queue to the front and hence nth person will be eliminated.
Metadata
Metadata
Assignees
Labels
No labels