Skip to content

carlosalban/JosephusProblem-iOS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JosephusProblem-iOS

My solution to a variation of the Josephus problem (see below).

K = 2 (the count of each step). N can be entered by the user.

The process begins with removing the first person, skipping the second, removing the third, skipping the fourth, and on and on in a circular fashion until only one person remains. The number of the chair the person was sitting in is displayed as the result.

About

Calculates solution for modified version of Josephus problem.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published