Optimal way ( less than O(n^2) ) to check for number of triplets where a[k]<a[

前端 未结 0 1678
广开言路
广开言路 2021-01-19 00:03

I\'m solving a problem where I have to find number of triplets of Ai, Aj, and Ak such that Ak < Ai < Aj and i < j < k in an array . I know the time complexity O(

相关标签:
回答
  • 消灭零回复
提交回复
热议问题