It would be nice if people who have solved the problems could add some hints to the problems they have solved. You can find samples of hints in the Competitive Programming community.
Problems are hosted on Kattis
Please use this thread for any simple questions you have. If you can't figure something out, if you want to make a request, or anything else that comes to mind.
This thread will stay alive until the next one is posted.
I believe you should set a size to a[m-n+1]
Can you please help me figure out where the problem in the logic is occuring of this question(see link for the question). See my code also.