Premium Only Content
![Leetcode solving: 997. Find the Town Judge](https://1a-1791.com/video/s8/1/u/J/p/L/uJpLf.qR4e-small-Leetcode-solving-997.-Find-.jpg)
Leetcode solving: 997. Find the Town Judge
Leetcode solving: 997. Find the Town Judge
Please subscribe to my channel
In a town, there are n people labelled from 1 to n. There is a rumor that one of these people is secretly the town judge.
If the town judge exists, then:
The town judge trusts nobody.
Everybody (except for the town judge) trusts the town judge.
There is exactly one person that satisfies properties 1 and 2.
You are given trust, an array of pairs trust[i] = [a, b] representing that the person labelled a trusts the person labelled b.
If the town judge exists and can be identified, return the label of the town judge. Otherwise, return -1.
##############
My other Leetcode solving videos (easy)
https://www.youtube.com/playlist?list=PLg9w7tItBlZt4oUpNyWU_0rOItlScu1_d
Leetcode solving videos (Medium):
https://www.youtube.com/playlist?list=PLg9w7tItBlZvMGxy-y1eXURPD6Ao6kkzA
Leetcode solving videos (Hard):
https://www.youtube.com/playlist?list=PLg9w7tItBlZt4JQmlkGD3M5idZn14NyL6
############
-
LIVE
LFA TV
15 hours agoTRILLIONS IN FRAUD & WASTE FOUND! | LIVE FROM AMERICA 2.18.25 11AM
4,124 watching -
LIVE
Bannons War Room
17 hours agoWarRoom Live
21,175 watching -
LIVE
Wendy Bell Radio
6 hours agoCHECKMATE
11,241 watching -
DVR
VSiNLive
1 hour agoA Numbers Game with Gill Alexander | Hour 1
1.77K -
2:06:29
Matt Kohrs
10 hours agoPumping To New Highs, Memecoin Mania & The Week Ahead || The MK Show
16.6K1 -
42:05
BonginoReport
4 hours agoPothole Pete Blames Plane Crash in Canada on Trump (Ep.142) - 02/18/2025
64.2K153 -
1:13:40
Graham Allen
3 hours agoDOGE Is Going After The IRS!! Mass Firing Soon!! + ANOTHER Plane Crash! We Are Not Safe…
35.5K19 -
56:28
Randi Hipper
1 hour agoArgentina's Meme Coin Disaster: Inside the LIBRA Crash
2.93K1 -
DVR
Chicks On The Right
5 hours agoCrazy plane crash, crazy lib protests, and Deborah Birx can suck it
38.7K5 -
1:04:59
2 MIKES LIVE
2 hours agoTHE MIKE SCHWARTZ SHOW with DR. MICHAEL J SCHWARTZ 02-18-2025
4.19K3