Leetcode 2107. Number of Unique Flavors After Sharing K Candies

Posted on Fri 22 November 2024 in Leetcode Premium • Tagged with sliding-window-fixed

Question Link : https://leetcode.com/problems/number-of-unique-flavors-after-sharing-k-candies/

Difficulty: Medium

Premium: True

Question

You are given a 0-indexed integer array candies, where candies[i] represents the flavor of the ith candy. Your mom wants you to share these candies with your little sister by giving her k consecutive candies, but you …


Continue reading