What's the most efficient solution to implement the two below functions? Any ideas?
- execute_trade(ticker,volume)
- most_traded(n)
- execute_trade('IBM',600)
- execute_trade('NFLX',800)
- execute_trade('AAPL',700)
- execute_trade('AMZN',1000)
- execute_trade('AAPL',400)
- execute_trade('GOGL',1200)
- most_traded(3)
- GOGL 1200
- AAPL 1100
- AMZN 1000
- most_traded(3)
- most_traded(4)
- most_traded(5)
Comments (4)


