Kids With the Greatest Number of Candies Problem
Kids With the Greatest Number of Candies Problem — ExecCode School DSA Practice
Solve the Kids With the Greatest Number of Candies problem on ExecCode. Free online school DSA practice in Arrays - Basics. Write and run code in Java, C++, Python — no signup required to run.
Problem description
You are given a whole number for the problem Kids With the Greatest Number of Candies. Your task is to understand the rule and print the correct answer. You are working on Kids With the Greatest Number of Candies. For each kid, determine if they would have the greatest number of candies among all kids if they received a given amount of extra candies.
Examples
Input 5 2 3 5 1 3 3; Output true true true false true. Input 3 4 2 1 1; Output true false false
Constraints
1 <= n <= 10^5
Practice Kids With the Greatest Number of Candies free on ExecCode. Browse DSA problems, topic map, and placement guides.