修复355.分发饼干.md js代码显示

This commit is contained in:
martisss
2021-09-04 10:58:23 +08:00
parent 739627983d
commit 767168a8b0

View File

@ -197,11 +197,10 @@ func findContentChildren(g []int, s []int) int {
return child
}
```
Javascript:
```Javascript
```
var findContentChildren = function(g, s) {
g = g.sort((a, b) => a - b)
s = s.sort((a, b) => a - b)