Skip to content

Hot Potato Game #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
nagakamisetti opened this issue Nov 19, 2017 · 0 comments
Open

Hot Potato Game #3

nagakamisetti opened this issue Nov 19, 2017 · 0 comments

Comments

@nagakamisetti
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant