Count Decreasing Triplets
Filed under Cashfree Payments
The question
Given an array arr[], count the number of triplets (i, j, k) such that i < j < k and arr[i] > arr[j] > arr[k].
No write-up yet. Related questions below have one.
Related Cashfree Payments questions
Collected from public candidate posts and coding forums. Updated Nov 2026.