3243 & 3244. Shortest Distance After Road Addition Queries I & II | Graph | BFS | Ordered Set

  Рет қаралды 1,514

Aryan Mittal

Aryan Mittal

Күн бұрын

Пікірлер
@rajrajesh1669
@rajrajesh1669 Ай бұрын
Bro is the real gangster!
@vancedutube7620
@vancedutube7620 Ай бұрын
Solved this yesterday, came today to look for other approach to solve, Learned about TreeSet subSet and removeAll functions usecase
@rsKayiira
@rsKayiira 17 күн бұрын
Thats great you're using Java now.
@Engineering.Wallah
@Engineering.Wallah Ай бұрын
0:36 unidirectional*
@amardeep7714
@amardeep7714 Ай бұрын
very nicee observation and solution . Thank you Aryan
@rajdippal51
@rajdippal51 Ай бұрын
8:22 because it's unidirectional, directed edges
@fasilv843
@fasilv843 Ай бұрын
It is not un-directional, it is uni-directional
@dewanshpatle9056
@dewanshpatle9056 Ай бұрын
why have you shifted to Java???
@rajrajesh1669
@rajrajesh1669 Ай бұрын
For development java is more likely to be used (Spring framework), I think for this reason but I'm not so sure.
@Rajdweep
@Rajdweep Ай бұрын
bro nhi mili spicy content twitter pe
@sanketbhagat1222
@sanketbhagat1222 Ай бұрын
it's not undirectional.. its -> unidirectional (single direction)
@naturesrevolution
@naturesrevolution Ай бұрын
it didn't pass test case n =5 queries =[[1,3],[2,4]] Use Testcase Output [3,2] Expected. [3,3]
@naturesrevolution
@naturesrevolution Ай бұрын
it didn't pass test case n =5 queries =[[1,3],[2,4]] Use Testcase Output [3,2] Expected. [3,3]
@kushagrajain9493
@kushagrajain9493 Ай бұрын
Shortest Distance After Road Addition Queries II, for this problem it is mentioned that there will be no overlapping b/w edges, but for Shortest Distance After Road Addition Queries I there may be overlapping, thus you have to use BFS
UFC 310 : Рахмонов VS Мачадо Гэрри
05:00
Setanta Sports UFC
Рет қаралды 1,2 МЛН
The evil clown plays a prank on the angel
00:39
超人夫妇
Рет қаралды 53 МЛН
How to treat Acne💉
00:31
ISSEI / いっせい
Рет қаралды 108 МЛН
Shortest Distance After Road Addition Queries I | Leetcode 3243
14:07
3371. Identify the Largest Outlier in an Array | Hash Table | Math
12:33
Netflix Removed React?
20:36
Theo - t3․gg
Рет қаралды 60 М.
If you're ambitious but lazy, please watch this video...
12:57
Mark Tilbury
Рет қаралды 424 М.
7 Outside The Box Puzzles
12:16
MindYourDecisions
Рет қаралды 93 М.
Programming Is Cooked
9:30
ThePrimeTime
Рет қаралды 361 М.