I get it till counting the number of connected components & number of odd degree vertices, but why do we need to take the maximum of (num of components-1) and ((num of odd degree vertices-1)/2) ?
Link to code : https://ide.codingblocks.com/s/263705
(doubt in line 78)