Josephus Problem in O(1) Time Complexity
In computer science this is counting puzzle with count-out logic. It is similar to popular Netflix Drama, Squid Game. So the question goes like :
There will be n chairs, numbered 1 to n. Person sitting on the first chair will kill the next person(sit...
shiwanisinha.hashnode.dev3 min read