Wrong answer on test 15 in problem 687A : NP-Hard Problem
Difference between en1 and en2, changed 522 character(s)
I am getting wrong answer (on test 15) for [this](https://codeforces.com/problemset/problem/687/A) problem.[problem:687A]↵

Here is my code :  [submission:51436363]
 problem : [problem:687A]↵

Here is my code :  [submission:51436363]↵
  ↵
Solution description : I have used concept of bipartitie graphs. If the graph is a bipartitie graph then solution is possible otherwise not. I have made a vector "dist" in which i have stored the distance of vertices from the source vertex. All the vertices at "odd" distance from the source go to vector "v2" and those with "even" distance go to vector "v1".↵

I have just started to learn graph theory so please tell me what is wrong with the logic and code.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English Light71192 2019-03-18 09:52:10 522 (published)
en1 English Light71192 2019-03-18 09:44:19 222 Initial revision (saved to drafts)