Размер видео: 1280 X 720853 X 480640 X 360
Показать панель управления
Автовоспроизведение
Автоповтор
Congrats on solving all 4 problems
for 3rd question, it is already given that size of array of edges == n or m of respetive array, there wasnt any need of set here
The set represents the actual nodes in the tree and not the edges. We would need this to calculate the answer for every node uniquely. You can take a vector as well.
Congrats on solving all 4 problems
for 3rd question, it is already given that size of array of edges == n or m of respetive array, there wasnt any need of set here
The set represents the actual nodes in the tree and not the edges. We would need this to calculate the answer for every node uniquely. You can take a vector as well.