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 }