Toy shop There are N shops present on a number line, where each shop is located at x; coordinate and of toys in it. You are present at point P initially and can move at most k steps. Whenever you reach a shop, you get all the toys present in that shop. Task Determine the maximum toys you can gather after moving at most k steps. Notes • You can change your direction in between. • No shop is present at the initial point. • No two shops can have the same coordinates. • You cannot buy more from a shop you already visited. Example Assumptions
Answers
Answered by
0
Answer:
n*p*x
= npx
Explanation:
Similar questions
Hindi,
3 hours ago
English,
5 hours ago
English,
8 months ago
Computer Science,
8 months ago
Math,
8 months ago