in which test case am i getting wa?
solution -link text
1 5 6
here answer should be no as 30 is not there in array, It’s only possible if array contains atmost one element other than 0,1,-1 with some conditions. Here is my solution:
Hope this will help.