Given an array of integers arr, and three integers a, b, and c, return the number of good triplets.
A triplet (arr[i], arr[j], arr[k]) is defined as good if the following conditions are satisfied:
arr.length
arr[i] arr[j]a
arr[j] arr[k]b
arr[i] arr[k]c
Constraints:
arr.length
arr[i]
a, b, c
Given an array of integers arr, and three integers a, b, and c, return the number of good triplets.
A triplet (arr[i], arr[j], arr[k]) is defined as good if the following conditions are satisfied:
arr.length
arr[i] arr[j]a
arr[j] arr[k]b
arr[i] arr[k]c
Constraints:
arr.length
arr[i]
a, b, c