Any hints for this problem

https://hack.codingblocks.com/contests/c/512/1598

Iterate over the one of the three array and then find the other two values using binary search on the remaining arrays .
for i in a:
// Assumming i the one of the index for which maximum occurs
// So, binarysearch on the second array b for which this condition trueand similarly binary search on c for third variable

1 Like