whats wrong with my Solution
getting WA, Problem
This is the AC version of your code. temp should be equal to 0 as soon as a=0 irrespective of count < temp or not.
yea,right. My bad. Missed dat part/ Thanks