In this question http://www.codechef.com/problems/KINGCON the gist of the question is to find the number of articulation points in the graph and multiply it by K. This is my solution http://ideone.com/mGdS8b . Please can anyone help me my mistake i am getting wrong answer.I have asked on codechef forum http://discuss.codechef.com/questions/33257/wa-in-kingcon and no one has helped me yet.
Line 55 may result in underestimating low[x].
Are u sure ,this is the same implementation given here http://www.geeksforgeeks.org/articulation-points-or-cut-vertices-in-a-graph/ If u think this is the flaw what will then be the corrected code
yes you are right but i modified my algorithm again still it is showing WA http://www.codechef.com/viewsolution/3144842
Thank you Fetetriste i found my bug and got it AC