You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given an array `candies` where `candies[i]` represents the number of candies that the `i`th kid has, and an integer `extraCandies`, write a function that for each kid checks if he/she would have the greatest number of candies in the group if they were given `extraCandies`. Note that multiple kids can have the greatest number of candies.
1447
1447
For example,
1448
1448
1449
-
```
1449
+
```shell
1450
1450
Input: candies = [2,3,5,1,3], extraCandies = 3
1451
1451
Output: [true,true,true,false,true]
1452
1452
@@ -1517,7 +1517,7 @@ const rot13 = str => {
1517
1517
1518
1518
You are given an `m x n` integer grid `accounts`, where `accounts[i][j]` is the amount of money the `i`th customer has in the `j`th bank. Return the wealth that the richest customer has. A customer's wealth is the amount of money they have in all their bank accounts. The richest customer is the customer that has the maximum wealth. For example:
0 commit comments