20bcs030's blog

By 20bcs030, history, 21 month(s) ago, In English

this giving me wrong answer but I have checked for all test case which can give answer 3 , can you tell me on which test case my code failed and also it is not on cf stress test

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

| Write comment?
»
21 month(s) ago, # |
  Vote: I like it +11 Vote: I do not like it

come on guys help me if you will not help me then who will help me

»
21 month(s) ago, # |
  Vote: I like it 0 Vote: I do not like it

For this input:

Input
Graph

Your code returns 2. But the correct answer is 3.