You are given a nums.
Find the total number of index triplets (i, j, k) that satisfy all of the following conditions:
nums.length
nums[i] \neq nums[j]
nums[i] \neq nums[k]
nums[j] \neq nums[k]
Return the total count of such valid triplets.
Constraints:
nums.length
nums[i]
You are given a nums.
Find the total number of index triplets (i, j, k) that satisfy all of the following conditions:
nums.length
nums[i] \neq nums[j]
nums[i] \neq nums[k]
nums[j] \neq nums[k]
Return the total count of such valid triplets.
Constraints:
nums.length
nums[i]