TRAINING CATEGORIES
TRAINING PROGRAMS
Difficulty Level: MEDIUM
Problem Statement:
You are given an array arr[] of length N, find the length of the longest sub-array with a sum equal to 0.
Input:
arr[] = { 23, -1, 1, -4, 2, 7, 19, 43 };
Output:
Length of the longest 0 sum subarray is 2
We use cookies to make interactions with our websites and services easy and meaningful. Please read our Privacy Policy for more details.