Computer Science, asked by agrawalashna800, 5 hours ago

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 sunainagupta1983
0

Answer:

n*p*x

= npx

Explanation:

Similar questions