|
|
back to boardif input= 1 2 2 4 why output = 1 Posted by TestT 18 Jul 2004 12:55 Re: if input= 1 2 2 4 why output = 1 you have to count the edges in conex components and see if it is even(1) or odd (0). This case has one component with 2 edges so write 1. |
|
|