Given an array arr[] of n integers. Check whether it contains a triplet that sums up to zero.
- Time : O(n^2)
- Space : O(1)
1 | class Solution{ |
Given an array arr[] of n integers. Check whether it contains a triplet that sums up to zero.
1 | class Solution{ |