← All problemsSign in

Firm with max investment

There are n investment groups which are indexed from 0 to n-1 in the order of input, each of which consists of m members which are indexed from 0 to m-1 also in the order of the input. There are c number of companies in the market. Each member of every investment firm has some preferences regarding the company he/she wants to invest in. Every company has limited number of shares in the market, whi

HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17

CodeSearch Tutor

Hints, not spoilers — it won’t hand over the full solution unless you insist.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start