← CodeNation questions

Count unordered triplets with product equal to k

Filed under CodeNation

The question

Given an unsorted array, count unordered triplets whose product equals a given number k, expected O(n log n).

No write-up yet. Related questions below have one.

Related CodeNation questions

Collected from public candidate posts and coding forums. Updated Nov 2026.