mirror of
https://github.com/cubixle/codekata-golang.git
synced 2026-04-24 19:54:43 +01:00
23 lines
209 B
Go
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
|
|
}
|