Skip to content

Commit cf90039

Browse files
committed
Day34
1 parent e1bff7b commit cf90039

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

‎leetcode3/최민지/3833.py‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
class Solution:
2+
def dominantIndices(self, nums: List[int]) -> int:
3+
result = 0
4+
n = len(nums)
5+
for i in range(0, n-1):
6+
if nums[i] > (sum(nums[i+1:]) / (n-(i+1))):
7+
result += 1
8+
return result
9+

0 commit comments

Comments
 (0)