home
search
help
profile
liking the experience? our app is even better
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now  
Search
showing results for
1int leftd=0;
2    int rightd=0;
3    int n=arr.size();
4    for(int i=0;i<n;i++)
5    {
6        leftd+=arr.get(i).get(i);
7        rightd+=arr.get(i).get(n-i-1);
8    }
9    int absd=Math.abs(leftd-rightd);
10    return absd;
11
upvote
downvote
similar questions
queries leading to this page