Algorithm · Optiver · Medium
Requirements Main (standard) form: Execute precisely 2n one-share trades. Begin with no shares, finish with no shares, and never allow the holding to fall below zero because short selling is unavailable. For a supplied n, determine how many different buy/sell trade strings satisfy those conditions. For instance, when n = 3, the answer is 5: buy-sell-buy-sell-buy-sell, buy-sell-buy-buy-sell-sell, buy-buy-sell-sell-buy-sell, buy-buy-sell-buy-sell-sell, and…
Checking your access…