Search
⌘K
Get Premium
Leetcode 1860. Incremental Memory Leak
Simulate a greedy allocation where at second i you allocate i bits to the stick with more available memory (or the first if tied), and stop when neither stick has at least i bits; return the crash time and the two remaining memories.
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.