Please either format your code or link to your solution; the forum software has mangled this and it won’t compile ![]()
Edit:
Wasn’t too badly mangled, after all - your code fails for the testcase:
1
9 9 17 61 61 93
Please either format your code or link to your solution; the forum software has mangled this and it won’t compile ![]()
Edit:
Wasn’t too badly mangled, after all - your code fails for the testcase:
1
9 9 17 61 61 93