Given an integer array nums of length n, return true if there exists a triplet of indices (i, j, k) satisfying i and i j and j k
The sum of elements from index i
The sum of elements from index i j
The sum of elements from index j k
The sum of elements from index k n
Return false if no such triplet exists.
Constraints:
n == nums.length
n
nums[i]
Given an integer array nums of length n, return true if there exists a triplet of indices (i, j, k) satisfying i and i j and j k
The sum of elements from index i
The sum of elements from index i j
The sum of elements from index j k
The sum of elements from index k n
Return false if no such triplet exists.
Constraints:
n == nums.length
n
nums[i]