Skip to content

Instantly share code, notes, and snippets.

func asteroidCollision(asteroids []int) []int {
if len(asteroids) <= 1 {
return asteroids
}
result := make([]int, 0)
for j := 0; j < len(asteroids); {
if len(result) == 0 {
result = append(result, asteroids[j])
j++
@phpcyy
phpcyy / # python - 2019-11-11_12-06-10.txt
Created November 12, 2019 08:06
python on macOS 10.15.1 - Homebrew build logs
Homebrew build logs for python on macOS 10.15.1
Build date: 2019-11-11 12:06:10