What is the approach to solve Round 179 Div 1 B ?
Can anyone please explain the approach to solve 295B - Greg and Graph. It is not very clear from the editorial.
Thanks