func Set(ic *IntCode, addr int, value int) error {
	if addr >= len(ic.memory) {
		newSpace := addr - len(ic.memory) + 1
		newMem := make([]int, newSpace)
		ic.memory = append(ic.memory, newMem...)
	}

	ic.memory[addr] = value

	return nil
}
// Set sets an address in an intcode to a specific value
Set sets an address in an intcode to a specific value
// Set sets an address in an intcode to a specific value
func Set(ic *IntCode, addr int, value int) error {
	if addr >= len(ic.memory) {
		newSpace := addr - len(ic.memory) + 1
		newMem := make([]int, newSpace)
		ic.memory = append(ic.memory, newMem...)
	}
	ic.memory[addr] = value
	return nil
}
func Set ( ic * IntCode , addr int , value int ) error { if addr >= len ( ic . memory ) { newSpace := addr - len ( ic . memory ) + 1 newMem := make ( [ ] int , newSpace ) ic . memory = append ( ic . memory , newMem ... ) } ic . memory [ addr ] = value return nil }
Set sets an address in an intcode to a specific value
Set sets an address in an intcode to a specific value