cousins-parent-identity-comparison

Status: IN

`isCousins` compares parents with `!=` (object identity) rather than value equality, which is correct because `TreeNode` has no `__eq__` override — two nodes with the same value at different positions are distinct objects.

Source: entries/2026/06/06/cousins-in-binary-tree-solution.md

JSON