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.
That’s a really smart and efficient approach! 👏 Just like designing a steel building , where every beam and joint must balance strength and structure, your solution balances logic and efficiency perfectly. Using the longest decreasing subsequence to determine minimum candies per student is a clever observation — strong, stable, and well-built from the ground up!
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Candies
You are viewing a single comment's thread. Return to all comments →
That’s a really smart and efficient approach! 👏 Just like designing a steel building , where every beam and joint must balance strength and structure, your solution balances logic and efficiency perfectly. Using the longest decreasing subsequence to determine minimum candies per student is a clever observation — strong, stable, and well-built from the ground up!