I had written the code according to video on divisible subarray but getting 1 wrong answer and 1 TLE.
Is there another way to do it so that TLE can be removed. My code is
Divisible Subarrays
No you weren’t getting TLE but run time error because you had taken the modulo incorrectly. I changed your code to take modulo correctly https://ide.codingblocks.com/s/209039