Merge pull request #794 from Jerry-306/patch-22

解决 0455 分发饼干 JavaScript 版本代码没有样式问题
This commit is contained in:
程序员Carl
2021-10-01 19:03:23 +08:00
committed by GitHub

View File

@ -200,7 +200,7 @@ func findContentChildren(g []int, s []int) int {
```
Javascript:
```
```js
var findContentChildren = function(g, s) {
g = g.sort((a, b) => a - b)
s = s.sort((a, b) => a - b)