1 parent e1bff7b commit cf90039Copy full SHA for cf90039
1 file changed
leetcode3/최민지/3833.py
@@ -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