We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d41296 commit e2007adCopy full SHA for e2007ad
2501-3000/2592.py
@@ -0,0 +1,8 @@
1
+class Solution(object):
2
+ def maximizeGreatness(self, A):
3
+ A.sort()
4
+ res = 0
5
+ for a in A:
6
+ if a > A[res]:
7
+ res += 1
8
+ return res
0 commit comments