CodeLink->https://ide.codingblocks.com/s/260123
could not able to submit
BuyAndSell problem
The following are the mistakes in ur code:
- when c = ‘+’ then update(price[s],1)
- when c= ‘-’ then if(cont[s]>0) then update(price[s],-1)
- if c==’?’ then print query(max)-query(x) for getting number of items having price strictly greater than x.
@Ankit003 I have correct my mistake in the code but I am still unable to submit the code
CodeLink->https://ide.codingblocks.com/s/260168