Grokking Data Structures & Algorithms for Coding Interviews
0% completed
Apple Redistribution into Boxes (easy)
.....
.....
.....
Like the course? Get enrolled and start learning!
A
Anonymous
· 2 years ago
When submitting my code, it fails on this particular test case:
[]
[1, 2, 3]
The constraints state:
1 <= n == apple.length <= 50
1 <= m == capacity.length <= 50
1 <= apple[i], capacity[i] <= 50
The apples array shouldn't be empty so this shouldn't be a valid test case.
Show 1 reply
Reading Progress
0%