...

/

Challenge 6: Find If a Subarray with a Sum Equal to 0 Exists

Challenge 6: Find If a Subarray with a Sum Equal to 0 Exists

Try to solve the A Subarray with a Sum of 0 problem.

Statement

Given a list containing both positive and negative integers, determine if there exists a sublist of consecutive elements whose elements sum to zero. Return TRUE if such a sublist exists; otherwise, return FALSE.

Constraints:

  • 11 \leq arr.length
...