can u plz identify and solve my mistake
GETTING segmentation fault
this was the input that bhaiya had given
3 4 -1 6 -1 -1 5 1 -1 -1 -1
1 Like
oh thanks, it was input problem thanx. marking as solved