Suppose, there is an array of size N. Find number of elements are less than VAL. The array may contain duplicate values.
for example,
array = [ 1 , 2 , 3 , 1 , 2 ]
VAL = 3
So answer will be = 4.
Can it done by STL. (such as set/multiset ) in logarithmic time
I already googled it ,but failed to find solution with STL.
Thanks in advance.