You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
int[] arr adlı array içerisinde, elmaların ağırlıkları var.
Bir tâne de sepet var. Bu sepet en fazla 5000 birim taşıyabiliyor.
Sepete konulabilecek maksimum elma sayısı isteniyor.
Varsayılan kod:
class Solution {
public int maxNumberOfApples(int[] arr) {
}
}