LeetCode Find Center of Star Graph in Python

preview_player
Показать описание
#Python #LeetCode #LeetCodePython

Be my friend:
Рекомендации по теме
Комментарии
Автор

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?

Codewithmughal
Автор

what if the test case is like [[1, 2], [2, 1], [2, 3]]

ds-dilipkumarp