Skip to content

Latest commit

 

History

History
6 lines (4 loc) · 397 Bytes

README.md

File metadata and controls

6 lines (4 loc) · 397 Bytes

Josephus-circle

C++ code to implement a global function of Josephus circle problem

a global function to implement Josephus circle problem as discussed in class. This function takes two integer parameters named Length of circle (l) and Count to choose next (k) and returns the Last person left standing or Josephus Position using a circular linked list.
int JosephusPosition(int l,int k)