refactor: slice exercises 22 and 24

This commit is contained in:
Inanc Gumus
2019-08-22 20:55:47 +03:00
parent 792a7a75d4
commit 08d881a3d0
6 changed files with 126 additions and 73 deletions

View File

@ -6,9 +6,7 @@ import (
"runtime"
)
// DO NOT TOUCH THE FOLLOWING CODE
// THIS IS THE IMAGINARY API CODE
// YOU CANNOT CONTROL IT!
// DO NOT TOUCH THIS FILE BUT YOU CAN READ IT
// Read returns a huge slice (allocates ~65 MB of memory)
func Read() []int {