n doors problem using Python

Reference:- https://freshlybuilt.com/100-doors-problem-using-python/ Problem Statement This is a general form of 100 doors problem.Here you have n doors.All doors are initially closed.m persons walk through all the doors and toggle them(open if close and vice-versa). Person 1 walks and toggle(open) all doors. Person 2 walks and toggle each door that is Read more…