func bestVersion(desiredVersion int, versions []int) int {
	best := 0
	for _, version := range versions {
		if version <= desiredVersion && version > best {
			best = version
		}
	}
	return best
}
// bestVersion tries to find the newest version in the version list that we can
// use.
bestVersion tries to find the newest version in the version list that we can
use.
// bestVersion tries to find the newest version in the version list that we can // use .
func bestVersion(desiredVersion int, versions []int) int {
	best := 0
	for _, version := range versions {
		if version <= desiredVersion && version > best {
			best = version
		}
	}
	return best
}
func bestVersion ( desiredVersion int , versions [ ] int ) int { best := 0 for _ , version := range versions { if version <= desiredVersion && version > best { best = version } } return best }
bestVersion tries to find the newest version in the version list that we can
use.
bestVersion tries to find the newest version in the version list that we can use .