Desarrollador De Java Core Interview Questions

248 desarrollador de java core interview questions shared by candidates

The interview question is to maximize the number of tastes of candies that will be distributed for my little sister and me by my mom. And there is a constraint called k which is the number of unique tastes my mom should give to my little sister. The tastes should be consecutive, I mean k consecutive candies. I need to maximize the number of unique candies tastes that I can achieve among all of the options. Example: candies = [2, 2, 4, 2, 3, 3, 3], k = 3. The answer is 3. I can give [2, 3, 3] for little sister and will have [2, 2, 4, 3].
avatar

Core Developer

Interviewed at Africa to Silicon Valley

3.7
Jul 19, 2024

The interview question is to maximize the number of tastes of candies that will be distributed for my little sister and me by my mom. And there is a constraint called k which is the number of unique tastes my mom should give to my little sister. The tastes should be consecutive, I mean k consecutive candies. I need to maximize the number of unique candies tastes that I can achieve among all of the options. Example: candies = [2, 2, 4, 2, 3, 3, 3], k = 3. The answer is 3. I can give [2, 3, 3] for little sister and will have [2, 2, 4, 3].

Viewing 21 - 30 interview questions

Glassdoor has 248 interview questions and reports from Desarrollador de java core interviews. Prepare for your interview. Get hired. Love your job.