mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
11 lines
169 B
Go
11 lines
169 B
Go
package main
|
|
|
|
func isPrefixOfGood(xs, ys []int) bool {
|
|
for i := 0; i < len(xs); i++ {
|
|
if len(ys) <= i || xs[i] != ys[i] { // OK
|
|
return false
|
|
}
|
|
}
|
|
return true
|
|
}
|