Hello↵
↵
Is there any easy way to implement a set supporting following 2 operations in O(log(n)) ?<br/>↵
↵
1)Insertion<br/>↵
2)Count of elements in the set having value <= x. (x is an Integer)↵
↵
Values inside set can be from 1 to 1e9.↵
↵
I am sorry if this in an easy/standard problem.↵
↵
Is there any easy way to implement a set supporting following 2 operations in O(log(n)) ?<br/>↵
↵
1)Insertion<br/>↵
2)Count of elements in the set having value <= x. (x is an Integer)↵
↵
Values inside set can be from 1 to 1e9.↵
↵
I am sorry if this in an easy/standard problem.↵