2021/06/20

    [LeetCode] Find the Town Judge

    https://leetcode.com/problems/find-the-town-judge/ Find the Town Judge - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com 마을의 판사를 찾는 문제! 판사는 다음과 같은 규칙으로 찾을 수 있다. 1. 판사는 아무도 믿지 않는다. 2. 판사를 제외한 사람들은 모두 판사를 믿는다. 3. n명 중에서는 위 1,2 조건을 가진 사람이 한 명 이상은 있다. 즉 n-1명이 본인을 믿고, 본인은 아무도 믿지 않아야 하는 ..