LeetCode—575. Distribute Candies


//url:https://leetcode.com/problems/distribute-candies/description/
class Solution {
public:
    int distributeCandies(vector& candies) {
       vector type(200001,0);
        int size=candies.size();
        int totalType=0;
       for(int i=0;i

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注