Skip to content

Latest commit

 

History

History
22 lines (12 loc) · 1.04 KB

README.md

File metadata and controls

22 lines (12 loc) · 1.04 KB

Go Exercises

Slice

  1. Practice Advanced Slice Operations

    Slice exercises for warm-up

  2. Limit the backing array sharing

    Your package needs to control the slices that it shares with the outside world.

  3. Fix the Memory Leak

    A slice retrieved from a package causes a memory leak in your program.

  4. Add a newline after each sentence

    Use the power of the copy() function and add newlines into a new buffer from a string slice.

  5. Print Daily Requests

    Group the web request logs into a multi-dimensional slice. Allocate a slice with the exact size needed by doing some wizardary calculations. And lastly, pretty print the result.