Skip to content

1196. How Many Apples Can You Put into the Basket #143

@altay9

Description

@altay9

https://leetcode.com/problems/how-many-apples-can-you-put-into-the-basket/solution/

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) {
        
    }
}

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions