Like I wrote in previous post you will get some coding questions, like other one is this-
You are given an array of integers having both positive & negative numbers in it.
Now you need to find the count of subarrays, such that sum of each subarray is 0.
Obviously I was not able to solve it in the given time limit & I believe many will not be able to
solve in that pathetic IDE of Bigshyft also, and again sometimes the right idea hit at the right
moment or many times it doesn't.
So below is the solution you can apply whether sum should be 0 or any other number-
You are given an array of integers having both positive & negative numbers in it.
Now you need to find the count of subarrays, such that sum of each subarray is 0.
Obviously I was not able to solve it in the given time limit & I believe many will not be able to
solve in that pathetic IDE of Bigshyft also, and again sometimes the right idea hit at the right
moment or many times it doesn't.
So below is the solution you can apply whether sum should be 0 or any other number-