[LeetCode] 1726. Tuple with Same Product

Given an array nums of distinct positive integers, return the number of tuples (a, b, c, d) such that a * b = c * d where a, b, c, and d are elements
posted @ 2023-10-21 07:12  CNoodle  阅读(12)  评论(0编辑  收藏  举报