Help in Google Kickstart 2019 round A . Problem 2;

Revision en1, by forget_it, 2020-03-14 12:03:46

please help me in following problem , i tried to read its analysis ,but was unable to understand its optimised solution . I looked for various people solution ,they had used bfs, but i am unable to interpret that too.

Just give me the way ,through which i should approach this problem .

Problem

Tags #googlekickstart, #competitive, #c++, #algorithms

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English forget_it 2020-03-14 12:03:46 448 Initial revision (published)