You are given a nums.
A triplet of indices (i, j, k) is called a mountain triplet if:
i j k
nums[i] nums[j] and nums[k] nums[j]
Return the minimum possible sum of a mountain triplet in nums. If no such triplet exists, return
Constraints:
nums.length
nums[i]
You are given a nums.
A triplet of indices (i, j, k) is called a mountain triplet if:
i j k
nums[i] nums[j] and nums[k] nums[j]
Return the minimum possible sum of a mountain triplet in nums. If no such triplet exists, return
Constraints:
nums.length
nums[i]