← Paytm questions

Pick Maximum Stones Under Weight Limit

Filed under Paytm

Given n stones with weights equal to their 1-based index and an integer x, pick the maximum number of stones such that the total weight does not exceed x, while avoiding a given array of restricted…

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Paytm questions

Collected from public candidate posts and coding forums. Updated Nov 2026.