https://ide.codingblocks.com/s/252418 sir I am not able to understand any other approach to solve this hackerblock question it is showing tle in 3 case plz help me out
Cover them alll hackerblocks
used combinatorics and bit is teeling how many small numbers are there till that time which are inserted , so inserting and calculating together
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.