There are n number of prisoners. We start from the first prisoner and count down k prisoners down the line. The prison we land on each time will be eliminated until only one prisoner remains. Each time we reach the end of the line, we start from the first prisoner again and this is why we use a circular linked list.
-
Notifications
You must be signed in to change notification settings - Fork 0
SiyaBedi/CS146_CircularLinkedListGame
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published