Your Dashboard
Interview Coaching
Learn
System Design
ML System Design
Code
Behavioral
Salary Negotiation
Interview Guides
Search
⌘K
Get Premium
Leetcode 1298. Maximum Candies You Can Get from Boxes
Starting from given initial boxes, repeatedly open any box that is either already open or for which you have a key to collect its candies, keys, and contained boxes; the task is to maximize total candies by performing a graph traversal/queue-based exploration while dynamically unlocking new nodes (boxes) until no more can be opened.
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Comments
Hello Interview Premium
Your account is free and you can post anonymously if you choose.