Menu

[solved] – Question 86461

A king has 100 servants, then he decides that he wants only one servant:
He numbers them from 1 to 100 and puts them in a circle, gives servant no.1 a sword and begins a round: 1 kills 2 and passes the sword to 3, 3 kills 4 and moves to 5 and so on …
What is the last remaining servant ? We have to write a small program that will solve it & present the solution.

Expert Answer


OR


Leave a Reply

Your email address will not be published. Required fields are marked *