|Martins Eglitis 9f20300584 Working on task 5, fixed some naming||2 months ago|
|inputs||2 months ago|
|src||2 months ago|
|.gitignore||4 months ago|
|README.md||4 months ago|
|main.go||2 months ago|
Solutions for Advent of Code 2019.
So when you pass a slice to a function, a copy will be made from this header, including the pointer, which will point to the same backing array. Modifying the elements of the slice implies modifying the elements of the backing array, and so all slices which share the same backing array will “observe” the change.
Day 3. Do math (unlike me). I did it brute force, O(n^2) complexity and huge n ~ 30k.
Day 4. Do not use string to convert from int. Use strconv.Itoa().