SHARE BUSINESS
CodeChefOpen on judge ↗
Problem description. At a certain day, Rajesh decided to get into the share business. Being a graduating year student, he doesn't have a lot of money to put into share business. However, he has N relic items each worth W[i] units, which he is ready to sell to buy any of the K shares to start his business. Cost of jth share is C[j] units. Is there a way to make C[j] units using exactly X[j] items
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.
Sign in to chat with the tutor and save your progress.
Sign in to start