Walmart SDE OA 2025 | Candy Taste Problem | Math & Greedy Solution
Walmart · Question · Posted Jun 2026
Problem 1 - The Candy Taste Problem Problem Statement You are given three types of candies with counts A, B, and C, where each candy belongs to exactly one taste category: A candies of Type 1 B candies of Type 2 C candies of Type 3 You may perform the following operation any number of times: Choose any two candies of different tastes. Convert both of them into two candies of the remaining taste. For example, if you choose one ...
The full answer & interview discussion are available to premium members.
Log in Create a free account