
zing
Novice
Oct 5, 2012, 5:26 AM
Views: 1895
|
|
Re: [zing] Problem printing return value from a subroutine
|
|
|
The code fails on this data
---------DATA-------------- b c a a c d d e b e f g g d f h i g And the output is
component 2 = e d g f component 1 = c a b b c a Which is wrong, because it should have been this
component 2 = e d g f e f g g d f component 1 = c a b b c a Because with the vertices in component 2, we can have 4th & 5th row of DATA. Please help on this
(This post was edited by zing on Oct 5, 2012, 5:28 AM)
|