← Flipkart questions

Find all triplets in an array

Filed under Flipkart

Given an array of integers of size up to 10^4, find the total number of triplets (i, j, k) such that a[i] < a[j] < a[k] and i < j < k.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Flipkart questions

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