We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Hi! I really appreciate your explanation, it is very nice :) My doubt is, do you mean by height: "number of queries that Mario ate the mushroom for a given point?", and if it yes, then, in my opinion, not only the height matters but also the size of the mushroom(k), isn't? So, what happens if Mario ate 3 mushrooms of size (k=1, k=1, k=1) on a given point but 2 mushrooms of an other point but sizes(k=10, k=15)? Thanks!
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Array Manipulation
You are viewing a single comment's thread. Return to all comments →
Hi! I really appreciate your explanation, it is very nice :) My doubt is, do you mean by height: "number of queries that Mario ate the mushroom for a given point?", and if it yes, then, in my opinion, not only the height matters but also the size of the mushroom(k), isn't? So, what happens if Mario ate 3 mushrooms of size (k=1, k=1, k=1) on a given point but 2 mushrooms of an other point but sizes(k=10, k=15)? Thanks!