Kids With the Greatest Number of Candies
Easy
Arrays
Array
Given candies[] and extraCandies, output true/false for each kid if adding extra makes them max.
Constraints
n ≤ 100
Examples
Example 1:
Input: 2 3 5 1 3
3
Output: true true true false true
Example 2:
Input: 4 2 1 1 2
1
Output: true false false false false
Tests:
Runtime:
Memory:
Test
Input:
Expected:
Got:
Click Run Code to test against sample cases, or Submit to test against all cases.
▲ Console