Tiger Analytics | OA | Interview question to find Triplets
Anonymous User
1361

You are given an integer n and two arrays each of which is a permutation of numbers from 1 to n. Your task is to determine the number of unordered triplets (a,b,c) such that the relative ordering of (a,b,c) is the same in both the arrays.

Comments (1)