Given an integer array nums, return the total number of special triplets (i, j, k).
A triplet of indices (i, j, k) is called special if all the following conditions are satisfied:
nums.length
nums[i] nums[j]
nums[k] nums[j]
Constraints:
nums.length
nums[i]
Given an integer array nums, return the total number of special triplets (i, j, k).
A triplet of indices (i, j, k) is called special if all the following conditions are satisfied:
nums.length
nums[i] nums[j]
nums[k] nums[j]
Constraints:
nums.length
nums[i]