The problem is Almost Arithmetic Sequences.
Can someone please figure out why is this happening?
O(n^2) solution is getting accepted but O(n * (n — 1)) solution is getting TLE
The problem is Almost Arithmetic Sequences.
Can someone please figure out why is this happening?