add: numbers and strings exercises
This commit is contained in:
18
08-numbers-and-strings/02-strings/README.md
Normal file
18
08-numbers-and-strings/02-strings/README.md
Normal file
@ -0,0 +1,18 @@
|
||||
# Basic Strings
|
||||
|
||||
1. **[Windows Path](https://github.com/inancgumus/learngo/tree/master/08-numbers-and-strings/02-strings/exercises/01-windows-path)**
|
||||
|
||||
2. **[Print JSON](https://github.com/inancgumus/learngo/tree/master/08-numbers-and-strings/02-strings/exercises/02-print-json)**
|
||||
|
||||
3. **[Raw Concat](https://github.com/inancgumus/learngo/tree/master/08-numbers-and-strings/02-strings/exercises/03-raw-concat)**
|
||||
|
||||
4. **[Count the Chars](https://github.com/inancgumus/learngo/tree/master/08-numbers-and-strings/02-strings/exercises/04-count-the-chars)**
|
||||
|
||||
5. **[Improved Banger](https://github.com/inancgumus/learngo/tree/master/08-numbers-and-strings/02-strings/exercises/05-improved-banger)**
|
||||
|
||||
6. **[ToLowercase](https://github.com/inancgumus/learngo/tree/master/08-numbers-and-strings/02-strings/exercises/06-tolowercase)**
|
||||
|
||||
7. **[Trim It](https://github.com/inancgumus/learngo/tree/master/08-numbers-and-strings/02-strings/exercises/07-trim-it)**
|
||||
|
||||
8. **[Right Trim It](https://github.com/inancgumus/learngo/tree/master/08-numbers-and-strings/02-strings/exercises/08-right-trim-it)**
|
||||
|
@ -10,7 +10,8 @@ package main
|
||||
import "fmt"
|
||||
|
||||
// ---------------------------------------------------------
|
||||
// EXERCISE
|
||||
// EXERCISE: Windows Path
|
||||
//
|
||||
// 1. Change the following program
|
||||
// 2. It should use a raw string literal instead
|
||||
//
|
@ -10,7 +10,8 @@ package main
|
||||
import "fmt"
|
||||
|
||||
// ---------------------------------------------------------
|
||||
// EXERCISE
|
||||
// EXERCISE: Print JSON
|
||||
//
|
||||
// 1. Change the following program
|
||||
// 2. It should use a raw string literal instead
|
||||
//
|
@ -10,7 +10,8 @@ package main
|
||||
import "fmt"
|
||||
|
||||
// ---------------------------------------------------------
|
||||
// EXERCISE
|
||||
// EXERCISE: Raw Concat
|
||||
//
|
||||
// 1. Initialize the name variable
|
||||
// by getting input from the command line
|
||||
//
|
@ -13,7 +13,8 @@ import (
|
||||
)
|
||||
|
||||
// ---------------------------------------------------------
|
||||
// EXERCISE
|
||||
// EXERCISE: Count the Chars
|
||||
//
|
||||
// 1. Change the following program to work with unicode
|
||||
// characters.
|
||||
//
|
@ -14,7 +14,8 @@ import (
|
||||
)
|
||||
|
||||
// ---------------------------------------------------------
|
||||
// EXERCISE
|
||||
// EXERCISE: Improved Banger
|
||||
//
|
||||
// Change the Banger program the work with Unicode
|
||||
// characters.
|
||||
//
|
@ -8,12 +8,17 @@
|
||||
package main
|
||||
|
||||
// ---------------------------------------------------------
|
||||
// EXERCISE
|
||||
// EXERCISE: ToLowercase
|
||||
//
|
||||
// 1. Look at the documentation of strings package
|
||||
// 2. Find a function that changes the letters into lowercase
|
||||
// 3. Get a value from the command-line
|
||||
// 4. Print the given value in lowercase letters
|
||||
//
|
||||
// HINT
|
||||
// Check out the strings package from Go online documentation.
|
||||
// You will find the lowercase function there.
|
||||
//
|
||||
// INPUT
|
||||
// "SHEPARD"
|
||||
//
|
@ -12,7 +12,8 @@ import (
|
||||
)
|
||||
|
||||
// ---------------------------------------------------------
|
||||
// EXERCISE
|
||||
// EXERCISE: Trim It
|
||||
//
|
||||
// 1. Look at the documentation of strings package
|
||||
// 2. Find a function that trims the spaces from
|
||||
// the given string
|
@ -12,7 +12,8 @@ import (
|
||||
)
|
||||
|
||||
// ---------------------------------------------------------
|
||||
// EXERCISE
|
||||
// EXERCISE: Right Trim It
|
||||
//
|
||||
// 1. Look at the documentation of strings package
|
||||
// 2. Find a function that trims the spaces from
|
||||
// only the right-most part of the given string
|
Reference in New Issue
Block a user