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
▲ Console

Install Talent Arabia

Get instant access to jobs and career tools on your device.