Skip to content

Instantly share code, notes, and snippets.

View pcabhijitha-creator's full-sized avatar

pcabhijitha-creator

  • Joined Oct 11, 2025
View GitHub Profile
import collections
import sys
# Set recursion limit higher for potentially deep operations, though not strictly
# necessary for iterative BFS. Using it to be safe for competitive programming.
# sys.setrecursionlimit(2000)
def solve():
"""
Reads the input, parses the wall layout, and uses a 0-1 BFS