Find the town judge | Leetcode

  Рет қаралды 19,641

Techdose

Techdose

Күн бұрын

This video explains an interesting programming interview question which is to find the judge in the town. The problem says that we have a town with N people, numbered from 1 to N and we are required to find the town judge among those people based on trust criteria which is provided to us. We can solve this problem in many ways but i have shown you one of the best and simplest method for solving this problem using array of pairs. I have explained the intuition for solving this problem and at the end of the video, i have also shown the CODE walk-through for this algorithm. CODE LINK is present below as usual. If you find any difficulty or have any query then do COMMENT below. PLEASE help our channel by SUBSCRIBING and LIKE our video if you found it helpful...CYA :)
CODE LINK: gist.github.co...

Пікірлер: 94
Find the Town Judge - Leetcode 997 - Python
9:55
NeetCodeIO
Рет қаралды 18 М.
Valid Perfect Square | Leetcode #367
9:00
Techdose
Рет қаралды 15 М.
Ozoda - Lada ( Ko’k jiguli 2 )
06:07
Ozoda
Рет қаралды 16 МЛН
Running With Bigger And Bigger Lunchlys
00:18
MrBeast
Рет қаралды 117 МЛН
LeetCode 997. Find The Town Judge (Algorithm Explained)
6:06
Nick White
Рет қаралды 21 М.
Maximal square | Dynamic programming | Leetcode #221
18:27
Techdose
Рет қаралды 71 М.
Single element in a sorted array | Leetcode #540
8:26
Techdose
Рет қаралды 55 М.
How to Solve ANY LeetCode Problem (Step-by-Step)
12:37
Codebagel
Рет қаралды 236 М.
Remove K digits | Build lowest number | Leetcode #402
15:30
Techdose
Рет қаралды 89 М.
Find the Town Judge - 997 Leetcode Python
15:07
Persistent Programmer
Рет қаралды 1,4 М.
Making an Algorithm Faster
30:08
NeetCodeIO
Рет қаралды 92 М.
I solved 541 Leetcode problems. But you need only 150.
7:42
Sahil & Sarra
Рет қаралды 2,4 МЛН