Test Cases & Chat
Part 1
current
Test 1
input:n = 5, edges = [[0,1],[1,2],[3,4]]
expect:2
Test 2
input:n = 5, edges = [[0,1],[1,2],[2,3],[3,4]]
expect:1
Test 3
input:n = 4, edges = []
expect:4
Choose your coach
Pick a style and how you want to communicate
then
Loading...
OUTPUT
Run code to see output...
Part 1
current
Test 1
input:n = 5, edges = [[0,1],[1,2],[3,4]]
expect:2
Test 2
input:n = 5, edges = [[0,1],[1,2],[2,3],[3,4]]
expect:1
Test 3
input:n = 4, edges = []
expect:4
Choose your coach
Pick a style and how you want to communicate
then