Skip to content

Commit eca0d9c

Browse files
authored
Update 455.AssignCookies.md
1 parent 0f00889 commit eca0d9c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

problems/455.AssignCookies.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,14 +96,14 @@ Python Code:
9696
from typing import *
9797
class Solution:
9898
def findContentChildren(self, g: List[int], s: List[int]) -> int:
99-
g.sort(reverse=True)
100-
s.sort(reverse=True)
99+
g.sort()
100+
s.sort()
101101
count=gIdx=sIdx=0
102102
while gIdx<len(g) and sIdx<len(s):
103103
if s[sIdx]>=g[gIdx]:
104-
sIdx+=1
104+
gIdx+=1
105105
count+=1
106-
gIdx+=1
106+
sIdx+=1
107107
return count
108108
```
109109

0 commit comments

Comments
 (0)