• + 1 comment

    Hi Andrew,

    Thanks for your solution.Your code is written aptly. I had similar idea, and wrote a Python code. It passed the initial case (example given in problem) and testcase 10 , I am not sure why it gave run time error for other part. It would be great if you check below code and let me know what could be the potential issues.I think one of the error could be memory problem.

    Thanks, Suyog

    image