antivenom's blog

By antivenom, history, 9 years ago, In English

Hello all,with best of my knowledge I wrote my 3rd graph solution for this question.I spent so much time thinking on it but after submitting it,it gave out TLE.As i am amateur in Graphs,I will be obliged if some one come out for help :) link of my code

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

| Write comment?
»
9 years ago, # |
  Vote: I like it 0 Vote: I do not like it
  1. I think it isn't necessary to use 'string'. Just use 'long long' :)
  2. Don't use 'vis' array because every number we generate just appear in the queue once :D