• + 0 comments

    Your logic is really good. I programmed it in form of array and was getting segmentation fault but I'm not getting it when declaring array with new long int [n+1]. Can anyone tell the reason?