Bug Report for https://neetcode.io/problems/find-the-town-judge
Please describe the bug below and include any steps to reproduce the bug or screenshots if possible.
The platform incorrectly marks the following solution as Accepted, even though it does not correctly handle multiple valid edge cases and should fail for certain inputs.
class Solution:
def findJudge(self, n: int, trust: List[List[int]]) -> int:
trusted = trust[0][1]
for trss in trust:
if trss[1] != trusted:
return -1
return trusted
