五月天青色头像情侣网名,国产亚洲av片在线观看18女人,黑人巨茎大战俄罗斯美女,扒下她的小内裤打屁股

歡迎光臨散文網(wǎng) 會(huì)員登陸 & 注冊(cè)

LeetCode 2798. Number of Employees Who Met the Target

2023-08-10 12:56 作者:您是打尖兒還是住店呢  | 我要投稿

There are?n?employees in a company, numbered from?0?to?n - 1. Each employee?i?has worked for?hours[i]?hours in the company.

The company requires each employee to work for?at least?target?hours.

You are given a?0-indexed?array of non-negative integers?hours?of length?n?and a non-negative integer?target.

Return?the integer denoting the number of employees who worked at least?target?hours.

?

Example 1:

Input: hours = [0,1,2,3,4], target = 2

Output: 3

Explanation: The company wants each employee to work for at least 2 hours. - Employee 0 worked for 0 hours and didn't meet the target. - Employee 1 worked for 1 hours and didn't meet the target. - Employee 2 worked for 2 hours and met the target. - Employee 3 worked for 3 hours and met the target. - Employee 4 worked for 4 hours and met the target. There are 3 employees who met the target.

Example 2:

Input: hours = [5,1,4,2,2], target = 6

Output: 0

Explanation: The company wants each employee to work for at least 6 hours. There are 0 employees who met the target.

?

Constraints:

  • 1 <= n == hours.length <= 50

  • 0 <=?hours[i], target <= 105


Runtime:?1 ms, faster than?38.94%?of?Java?online submissions for?Number of Employees Who Met the Target.

Memory Usage:?40.9 MB, less than?92.70%?of?Java?online submissions for?Number of Employees Who Met the Target.


LeetCode 2798. Number of Employees Who Met the Target的評(píng)論 (共 條)

分享到微博請(qǐng)遵守國(guó)家法律
色达县| 神木县| 沙湾县| 永仁县| 台湾省| 台山市| 罗甸县| 米易县| 信宜市| 阳东县| 镇远县| 神农架林区| 碌曲县| 锡林郭勒盟| 潼南县| 凤翔县| 钦州市| 济阳县| 白山市| 疏附县| 南充市| 孝义市| 建水县| 庆云县| 运城市| 盐边县| 萨嘎县| 阳谷县| 三河市| 同仁县| 新安县| 容城县| 仁寿县| 巴彦淖尔市| 白朗县| 沁源县| 万荣县| 罗江县| 绥德县| 治多县| 齐齐哈尔市|