Problem Link: SSCRIPT
My Solutions:
- CodeChef: Practical coding for everyone
- CodeChef: Practical coding for everyone
- CodeChef: Practical coding for everyone
- CodeChef: Practical coding for everyone
- CodeChef: Practical coding for everyone
All of these solutions work for the given sample inputs and also work for subtask 1 giving me 30 points. I am guessing my code fails for the subtask 2 with original constraints either due to time complexity issues or inefficient code so could anyone please help. (I am a beginner so I am not that experienced in writing really efficient code or knowing how to handle constraints.)
I have written the code in Python 3.6 and would prefer help in the same however I would also appreciate any help in C++ or Java.
Thanks in advance!