mirror of
https://github.com/cubixle/codekata-golang.git
synced 2026-04-30 12:18:40 +01:00
20201217
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user