question: https://hack.codingblocks.com/contests/c/509/1302
my solution: https://ide.codingblocks.com/#/s/28164
working for every input and checked all the constraints…still not passing test case.
Largest subarray
https://ide.codingblocks.com/#/s/28170
a small change, i have commented it.
NOTE: You used O(N^2) approach to solve it. It can be solved in O(N) using hashing.