vatayush's blog

By vatayush, 9 years ago, In English

hi! i am trying to solve this question.here's my code.it is getting stuck somewhere.i can't find the error.please help!!

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

»
9 years ago, # |
  Vote: I like it +4 Vote: I do not like it
s.insert(0);
»
9 years ago, # |
  Vote: I like it -6 Vote: I do not like it

Thanx fo the quetion

»
9 years ago, # |
  Vote: I like it 0 Vote: I do not like it

Why you used the set structure, is more ease checking that vis[n] is true, otherway the solution is -1.