Skip to content

Hot Potato Game #3

Open
Open
@nagakamisetti

Description

@nagakamisetti

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions