2019-01-29 19:43:12 +03:00
|
|
|
|
# Slice Exercises
|
|
|
|
|
|
|
|
|
|
## Exercises Level I - Basics — Warm-Up
|
|
|
|
|
|
2019-01-29 19:56:18 +03:00
|
|
|
|
These are warm-up exercises that will reinforce your knowledge of slices.
|
|
|
|
|
|
2019-01-29 19:43:12 +03:00
|
|
|
|
1. **[Declare nil slices](https://github.com/inancgumus/learngo/tree/master/16-slices/exercises/01-declare-nil)**
|
|
|
|
|
|
|
|
|
|
2. **[Assign empty slices](https://github.com/inancgumus/learngo/tree/master/16-slices/exercises/02-empty)**
|
|
|
|
|
|
|
|
|
|
3. **[Assign slice literals](https://github.com/inancgumus/learngo/tree/master/16-slices/exercises/03-slice-literal)**
|
|
|
|
|
|
|
|
|
|
4. **[Declare the arrays as slices](https://github.com/inancgumus/learngo/tree/master/16-slices/exercises/04-declare-arrays-as-slices)**
|
|
|
|
|
|
|
|
|
|
5. **[Fix the Problems](https://github.com/inancgumus/learngo/tree/master/16-slices/exercises/05-fix-the-problems)**
|
|
|
|
|
|
|
|
|
|
6. **[Compare the slices](https://github.com/inancgumus/learngo/tree/master/16-slices/exercises/06-compare-the-slices)**
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
## Exercises Level II - Appending
|
|
|
|
|
|
|
|
|
|
1. **[Append #1 — Append and compare byte slices](https://github.com/inancgumus/learngo/tree/master/16-slices/exercises/07-append)**
|
|
|
|
|
|
|
|
|
|
2. **[Append #2 — Append to a nil slice](https://github.com/inancgumus/learngo/tree/master/16-slices/exercises/08-append-2)**
|
|
|
|
|
|
2019-01-30 16:47:30 +03:00
|
|
|
|
3. **[Append #3 — Fix the problems](https://github.com/inancgumus/learngo/tree/master/16-slices/exercises/09-append-3-fix)**
|
|
|
|
|
|
|
|
|
|
4. **[Append and Sort Numbers](https://github.com/inancgumus/learngo/tree/master/16-slices/exercises/10-append-sort-nums)**
|
|
|
|
|
|
|
|
|
|
5. **[Housing Prices](https://github.com/inancgumus/learngo/tree/master/16-slices/exercises/11-housing-prices)**
|
|
|
|
|
|
|
|
|
|
6. **[Housing Prices and Averages](https://github.com/inancgumus/learngo/tree/master/16-slices/exercises/12-housing-prices-averages)**
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
## Exercises Level III - Slicing
|
|
|
|
|
|
|
|
|
|
1. **[Slice the numbers](https://github.com/inancgumus/learngo/tree/master/16-slices/exercises/13-slicing-basics)**
|
|
|
|
|
|
|
|
|
|
2. **[Slicing by arguments](https://github.com/inancgumus/learngo/tree/master/16-slices/exercises/14-slicing-by-args)**
|
|
|
|
|
|
|
|
|
|
3. **[Slicing the Housing Prices](https://github.com/inancgumus/learngo/tree/master/16-slices/exercises/15-slicing-housing-prices)**
|