{"id":"cousins-early-exit-on-depth-mismatch","text":"If only one of `x` or `y` is found at a BFS level, `isCousins` returns `False` immediately without visiting deeper levels, since different depths means they cannot be cousins.","truth_value":"IN","source":"entries/2026/06/06/cousins-in-binary-tree-solution.md","source_url":"","source_hash":"","justifications":[],"dependents":[],"metadata":{},"created_at":"","updated_at":"","reviewed_at":"","verified_at":"","retracted_at":"","explanation":{"steps":[{"node":"cousins-early-exit-on-depth-mismatch","truth_value":"IN","reason":"premise"}]}}