Search⌘ K
AI Features

Valid Triangle Number

Valid Triangle Number asks you to count unordered triplets of distinct indices in an integer array whose three values can serve as the side lengths of a valid triangle.

Statement

Given an array of integers, nums, determine the number of triplets of distinct ...