Files
codekata-golang/20201217/main.go
2020-12-17 08:59:15 +08:00

23 lines
209 B
Go

package main
import (
"sort"
)
func main() {
}
func process(g, s []int) int {
sort.Ints(g)
sort.Ints(s)
i, j := 0, 0
for i < len(g) && j < len(s) {
if s[j] >= g[i] {
i++
}
j++
}
return i
}