Solved this yesterday, came today to look for other approach to solve, Learned about TreeSet subSet and removeAll functions usecase
@rsKayiira17 күн бұрын
Thats great you're using Java now.
@Engineering.WallahАй бұрын
0:36 unidirectional*
@amardeep7714Ай бұрын
very nicee observation and solution . Thank you Aryan
@rajdippal51Ай бұрын
8:22 because it's unidirectional, directed edges
@fasilv843Ай бұрын
It is not un-directional, it is uni-directional
@dewanshpatle9056Ай бұрын
why have you shifted to Java???
@rajrajesh1669Ай бұрын
For development java is more likely to be used (Spring framework), I think for this reason but I'm not so sure.
@RajdweepАй бұрын
bro nhi mili spicy content twitter pe
@sanketbhagat1222Ай бұрын
it's not undirectional.. its -> unidirectional (single direction)
@naturesrevolutionАй бұрын
it didn't pass test case n =5 queries =[[1,3],[2,4]] Use Testcase Output [3,2] Expected. [3,3]
@naturesrevolutionАй бұрын
it didn't pass test case n =5 queries =[[1,3],[2,4]] Use Testcase Output [3,2] Expected. [3,3]
@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