Memory limit exceded error to find maximum value from each componenet in graph

后端 未结 0 494
日久生厌
日久生厌 2021-02-07 16:13

Here is the question:

exmaple:

5

12 34 10 7 8

3

1 2

2 3

3 1

Output:

56

groups formed are [1,2,3][4][5] max

相关标签:
回答
  • 消灭零回复
提交回复
热议问题