parth_patel15's blog

By parth_patel15, history, 3 months ago, In English,

Hello, I was solving a problem PROBLEMfrom this long challenge but my solution Solutionis not getting accepted. I have used 2 colouring graph method for vertices whose difference is 1 and DSU for vertices whose difference is 0. Please have a look at the solution and tell that is approach correct or not?

 
 
 
 
  • Vote: I like it  
  • -10
  • Vote: I do not like it  

»
3 months ago, # |
  Vote: I like it +6 Vote: I do not like it

Please, mention, whether you are getting TLE or WA .