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 b687280 commit 0893703Copy full SHA for 0893703
001-500/455.py
@@ -0,0 +1,11 @@
1
+class Solution:
2
+ def findContentChildren(self, g: List[int], s: List[int]) -> int:
3
+ s.sort()
4
+ g.sort()
5
+ i,j=0,0
6
+ while i<len(g) and j<len(g):
7
+ if s[j]>=g[i]:
8
+ i+=1
9
+ j+=1
10
+ return i
11
+
0 commit comments