aakashyadav2000's blog

By aakashyadav2000, history, 7 weeks ago, In English

I tried to solve this ques using vector<pair<int,int>> arr but its not working and i didn't understand why it's not working This is my submission sumission Please help if you know Thank you.

 
 
 
 
  • Vote: I like it
  • 0
  • Vote: I do not like it

»
7 weeks ago, # |
  Vote: I like it 0 Vote: I do not like it

Declare the size of the vector as n instead of n+1.