#Python #LeetCode #LeetCodePython github.com/gbrough/LeetCode/b... Be my friend: / knowledgemavens / knowledgemavens knowledgemavens.org/discord / knowledgemavens github.com/knowledgemavens
Пікірлер: 3
@ds-21dilipkumarp334 күн бұрын
what if the test case is like [[1,2],[2,1],[2,3]]
@Codewithmughal2 жыл бұрын
The condition is only checking the 1th pair for node_a or node_b.. how are other pairs getting checked??? We are not using any loop?
@asr75252 жыл бұрын
no we dont need to use the loop since there is 1 node which is common in alll the edges so we will just have to find which is that node it does not mattter with which pair you compare to find that node