Hi , I'm Getting TLE error on some python solutions so i used accepted python solutions also still tle error what is wrong with my code
Accepted Python Solution but now i'm getting TLE : SOlution Link
Exact copy paste solution still TLE : MY Solution
EDIT : I do not know what's happening this solution also gives TLE But Algorithm Time Complexity is O(n) it should work fine can anyone help me.