To run ChandyHassMisra algorithm we need windows 10 Operating System and Python as execution environment, please find below sample inputs
Sample input (with deadlock) 5 0 0 1 0 0 1 0 0 1 0 0 1 0 0 1 0 0 0 0 0 0 0 0 0 0 0
output : Deadlock Detected
Sample input (with out deadlock) 5 0 0 1 0 0 0 0 0 1 0 0 1 0 0 1 0 0 0 0 0 0 0 0 0 0 0
output : No Deadlock Detected