Browse Source

Merge branch 'master' of github.com:01-edu/public

content-update
Augusto 5 years ago
parent
commit
7dd29c2ced
  1. 234
      subjects/ascii-art/ascii-art.audit.en.md
  2. 5
      subjects/ascii-art/ascii-art.en.md
  3. 6
      subjects/ascii-art/ascii-color.en.md
  4. 6
      subjects/ascii-art/ascii-fs.en.md
  5. 4
      subjects/ascii-art/ascii-justify.en.md
  6. 4
      subjects/ascii-art/ascii-output.en.md
  7. 72
      subjects/ascii-art/ascii-reverse-example.md
  8. 57
      subjects/ascii-art/ascii-reverse.audit.en.md
  9. 4
      subjects/ascii-art/ascii-reverse.en.md
  10. 3
      subjects/ascii-art/standard.txt
  11. 11
      subjects/badexample00.md
  12. 11
      subjects/badexample01.md
  13. 11
      subjects/badexample02.md
  14. 11
      subjects/badexample03.md
  15. 11
      subjects/badexample04.md
  16. 26
      subjects/badformat.md
  17. 2
      subjects/cat.en.md
  18. 2
      subjects/go-reloaded.en.md
  19. 11
      subjects/goodexample00.md
  20. 26
      subjects/goodexample01.md
  21. 46
      subjects/goodexample02.md
  22. 61
      subjects/goodexample03.md
  23. 66
      subjects/hardexam.md
  24. 4
      subjects/listat.en.md
  25. 2
      subjects/listforeachif.en.md
  26. 4
      subjects/printchessboard.en.md
  27. 11
      subjects/robottoorigin.en.md
  28. 11
      subjects/twosum.en.md

234
subjects/ascii-art/ascii-art.audit.en.md

@ -0,0 +1,234 @@
#### Functional Project Questions
##### Try passing as argument "hello".
```
_ _ _
| | | | | |
| |__ ___ | | | | ___
| _ \ / _ \ | | | | / _ \
| | | | | __/ | | | | | (_) |
|_| |_| \___| |_| |_| \___/
```
###### Does it display the right graphical representation in ASCII as above?
##### Try passing as argument "HELLO".
```
_ _ ______ _ _ ____
| | | | | ____| | | | | / __ \
| |__| | | |__ | | | | | | | |
| __ | | __| | | | | | | | |
| | | | | |____ | |____ | |____ | |__| |
|_| |_| |______| |______| |______| \____/
```
###### Does it display the right graphical representation in ASCII as above?
##### Try passing as argument "HeLlo HuMaN".
```
_ _ _ _ _ _ __ __ _ _
| | | | | | | | | | | | | \/ | | \ | |
| |__| | ___ | | | | ___ | |__| | _ _ | \ / | __ _ | \| |
| __ | / _ \ | | | | / _ \ | __ | | | | | | |\/| | / _` | | . ` |
| | | | | __/ | |____ | | | (_) | | | | | | |_| | | | | | | (_| | | |\ |
|_| |_| \___| |______| |_| \___/ |_| |_| \__,_| |_| |_| \__,_| |_| \_|
```
###### Does it display the right graphical representation in ASCII as above?
##### Try passing as argument "1Hello 2There".
```
_ _ _ _ _______ _
_ | | | | | | | | ____ |__ __| | |
/ | | |__| | ___ | | | | ___ |___ \ | | | |__ ___ _ __ ___
| | | __ | / _ \ | | | | / _ \ __) | | | | _ \ / _ \ | '__| / _ \
| | | | | | | __/ | | | | | (_) | / __/ | | | | | | | __/ | | | __/
|_| |_| |_| \___| |_| |_| \___/ |_____| |_| |_| |_| \___| |_| \___|
```
###### Does it display the right graphical representation in ASCII as above?
##### Try passing as argument "Hello\nThere".
```
_ _ _ _
| | | | | | | |
| |__| | ___ | | | | ___
| __ | / _ \ | | | | / _ \
| | | | | __/ | | | | | (_) |
|_| |_| \___| |_| |_| \___/
_______ _
|__ __| | |
| | | |__ ___ _ __ ___
| | | _ \ / _ \ | '__| / _ \
| | | | | | | __/ | | | __/
|_| |_| |_| \___| |_| \___|
```
###### Does it display the right graphical representation in ASCII as above?
##### Try passing "{Hello & There #}" as argument.
```
__ _ _ _ _ _______ _ _ _ __
/ / | | | | | | | | ___ |__ __| | | _| || |_ \ \
| | | |__| | ___ | | | | ___ ( _ ) | | | |__ ___ _ __ ___ |_ __ _| | |
/ / | __ | / _ \ | | | | / _ \ / _ \/\ | | | _ \ / _ \ | '__| / _ \ _| || |_ \ \
\ \ | | | | | __/ | | | | | (_) | | (_> < | | | | | | | __/ | | | __/ |_ __ _| / /
| | |_| |_| \___| |_| |_| \___/ \___/\/ |_| |_| |_| \___| |_| \___| |_||_| | |
\_\ /_/
```
###### Does it display the right graphical representation in ASCII as above?
##### Try passing "hello There 1 to 2!" as argument.
```
_ _ _ _______ _ _ _
| | | | | | |__ __| | | _ | | ____ | |
| |__ ___ | | | | ___ | | | |__ ___ _ __ ___ / | | |_ ___ |___ \ | |
| _ \ / _ \ | | | | / _ \ | | | _ \ / _ \ | '__| / _ \ | | | __| / _ \ __) | | |
| | | | | __/ | | | | | (_) | | | | | | | | __/ | | | __/ | | \ |_ | (_) | / __/ |_|
|_| |_| \___| |_| |_| \___/ |_| |_| |_| \___| |_| \___| |_| \__| \___/ |_____| (_)
```
###### Does it display the right graphical representation in ASCII as above?
##### Try passing "MaD3IrA&LiSboN" as argument.
```
__ __ _____ _____ _ _ _____ _ _ _
| \/ | | __ \ _____ |_ _| /\ ___ | | (_) / ____| | | | \ | |
| \ / | __ _ | | | | |___ / | | _ __ / \ ( _ ) | | _ | (___ | |__ ___ | \| |
| |\/| | / _` | | | | | |_ \ | | | '__| / /\ \ / _ \/\ | | | | \___ \ | '_ \ / _ \ | . ` |
| | | | | (_| | | |__| | ___) | _| |_ | | / ____ \ | (_> < | |____ | | ____) | | |_) | | (_) | | |\ |
|_| |_| \__,_| |_____/ |____/ |_____| |_| /_/ \_\ \___/\/ |______| |_| |_____/ |_.__/ \___/ |_| \_|
```
###### Does it display the right graphical representation in ASCII as above?
##### Try passing "1a\"#FdwHywR&/()=" as argument.
```
_ _ _ _ ______ _ _ _ _____ __ __ __
_ ( | ) _| || |_ | ____| | | | | | | | __ \ ___ / / / / \ \ ______
/ | __ _ V V |_ __ _| | |__ __| | __ __ | |__| | _ _ __ __ | |__) | ( _ ) / / | | | | |______|
| | / _` | _| || |_ | __| / _` | \ \ /\ / / | __ | | | | | \ \ /\ / / | _ / / _ \/\ / / | | | | ______
| | | (_| | |_ __ _| | | | (_| | \ V V / | | | | | |_| | \ V V / | | \ \ | (_> < / / | | | | |______|
|_| \__,_| |_||_| |_| \__,_| \_/\_/ |_| |_| \__, | \_/\_/ |_| \_\ \___/\/ /_/ | | | |
__/ / \_\ /_/
|___/
```
###### Does it display the right graphical representation in ASCII as above?
##### Try passing "{|}~" as argument.
```
__ _ __ /\/|
/ / | | \ \ |/\/
| | | | | |
/ / | | \ \
\ \ | | / /
| | | | | |
\_\ | | /_/
|_|
```
###### Does it display the right graphical representation in ASCII as above?
##### Try passing "[\]^_ \`a" as argument.
```
___ __ ___ /\ _
| _| \ \ |_ | |/\| ( )
| | \ \ | | \| __ _
| | \ \ | | / _` |
| | \ \ | | | (_| |
| |_ \_\ _| | \__,_|
|___| |___| ______
|______|
```
###### Does it display the right graphical representation in ASCII as above?
##### Try passing "RGB" as argument.
```
_____ _____ ____
| __ \ / ____| | _ \
| |__) | | | __ | |_) |
| _ / | | |_ | | _ <
| | \ \ | |__| | | |_) |
|_| \_\ \_____| |____/
```
###### Does it display the right graphical representation in ASCII as above?
##### Try passing ":;<=>?@" as argument.
```
__ __ ___
_ _ / / ______ \ \ |__ \ ____
(_) (_) / / |______| \ \ ) | / __ \
< < ______ > > / / / / _` |
_ _ \ \ |______| / / |_| | | (_| |
(_) ( ) \_\ /_/ (_) \ \__,_|
|/ \____/
```
###### Does it display the right graphical representation in ASCII as above?
##### Try passing "\!\" #$%&'()*+,-./" as argument.
```
__ _ _ _ _ _ _ _ __ _ __ __ _ __
\ \ | | ( | ) _| || |_ | | (_) / / ___ ( ) / / \ \ /\| |/\ _ / /
\ \ | | V V |_ __ _| / __) / / ( _ ) |/ | | | | \ ` ' / _| |_ ______ / /
\ \ | | _| || |_ \__ \ / / / _ \/\ | | | | |_ _| |_ _| |______| / /
\ \ |_| |_ __ _| ( / / / _ | (_> < | | | | / , . \ |_| _ _ / /
\_\ (_) |_||_| |_| /_/ (_) \___/\/ | | | | \/|_|\/ ( ) (_) /_/
\_\ /_/ |/
```
###### Does it display the right graphical representation in ASCII as above?
##### Try passing "ABCDEFGHIJKLMNOQPRSTUVWXYZ" as argument.
```
____ _____ _____ ______ ______ _____ _ _ _____ _ _ __ _ __ __ _ _ ____ _____ ____ _____ _____ _______ _ _ __ __ __ __ __ __ __ __ ______
/\ | _ \ / ____| | __ \ | ____| | ____| / ____| | | | | |_ _| | | | |/ / | | | \/ | | \ | | / __ \ | __ \ / __ \ | __ \ / ____| |__ __| | | | | \ \ / / \ \ / / \ \ / / \ \ / / |___ /
/ \ | |_) | | | | | | | | |__ | |__ | | __ | |__| | | | | | | ' / | | | \ / | | \| | | | | | | |__) | | | | | | |__) | | (___ | | | | | | \ \ / / \ \ /\ / / \ V / \ \_/ / / /
/ /\ \ | _ < | | | | | | | __| | __| | | |_ | | __ | | | _ | | | < | | | |\/| | | . ` | | | | | | ___/ | | | | | _ / \___ \ | | | | | | \ \/ / \ \/ \/ / > < \ / / /
/ ____ \ | |_) | | |____ | |__| | | |____ | | | |__| | | | | | _| |_ | |__| | | . \ | |____ | | | | | |\ | | |__| | | | | |__| | | | \ \ ____) | | | | |__| | \ / \ /\ / / . \ | | / /__
/_/ \_\ |____/ \_____| |_____/ |______| |_| \_____| |_| |_| |_____| \____/ |_|\_\ |______| |_| |_| |_| \_| \____/ |_| \___\_\ |_| \_\ |_____/ |_| \____/ \/ \/ \/ /_/ \_\ |_| /_____|
```
###### Does it display the right graphical representation in ASCII as above?
##### Try passing "abcdefghijklmnopqrstuvwxyz" as argument.
```
_ _ __ _ _ _ _ _
| | | | / _| __ _ | | (_) (_) _ | | | |
__ _ | |__ ___ __| | ___ | |_ / _` | | |__ _ _ | | _ | | _ __ ___ _ __ ___ _ __ __ _ _ __ ___ | |_ _ _ __ __ __ __ __ __ _ _ ____
/ _` | | '_ \ / __| / _` | / _ \ | _| | (_| | | _ \ | | | | | |/ / | | | '_ ` _ \ | '_ \ / _ \ | '_ \ / _` | | '__| / __| | __| | | | | \ \ / / \ \ /\ / / \ \/ / | | | | |_ /
| (_| | | |_) | | (__ | (_| | | __/ | | \__, | | | | | | | | | | < | | | | | | | | | | | | | (_) | | |_) | | (_| | | | \__ \ \ |_ | |_| | \ V / \ V V / > < | |_| | / /
\__,_| |_.__/ \___| \__,_| \___| |_| __/ | |_| |_| |_| | | |_|\_\ |_| |_| |_| |_| |_| |_| \___/ | .__/ \__, | |_| |___/ \__| \__,_| \_/ \_/\_/ /_/\_\ \__, | /___|
|___/ _/ | | | | | __/ /
|__/ |_| |_| |___/
```
###### Does it display the right graphical representation in ASCII as above?
#### Basic
###### *Has the code passed the formatting? (gofmt, goimports)
###### *Does the project runs quickly and effectively? (Favoring recursive, no unnecessary data requests, etc)
###### *Does the code present commenting? (https://github.com/01-edu/public/blob/master/subjects/good-practices.en.md)
###### *Does the code present documentation?
###### *Does it present consistent indentation?
###### *Does the code avoid obvious comments? (no over information)
###### *Does the code avoid code grouping?
###### *Does the code have a consistent naming scheme (camelCase, under_scores)?
###### *Does the code obey the principles "DRY" (Don't Repeat Yourself) or "DIE" (Duplication is Evil)?
###### *Does the code obey the principal "KISS" (keep it simple, stupid)?
###### *Does the code obey the principle "YAGNI" (You Are not Gonna Need It)?
###### *Does the code obey the principle "SOC" (Separation of Concerns)?
###### *Does the code avoid deep nesting (if in ifs, forest of ifs)?
###### *Does the code present a good file and folder organization?
###### *Does it present a good separation of Code and Data?
###### *Does the go code follow the go recommendation? (https://github.com/01-edu/public/blob/master/subjects/good-practices.en.md)
###### *Is the error handled, is it error free?
###### *Is there a test file for this code?
###### *Are the tests checking each possible case?
###### *Is the output of the program well structured? Does any letter seems to be out of line?
#### Social
###### *Did you learn anything from this project?
###### *Can it be open-sourced / be used for other sources?
###### *Would you recommend/nominate this program as an example for the rest of the school?

5
subjects/ascii-art/ascii-art.en.md

@ -19,9 +19,10 @@ This project will help you learn about :
### Instructions
- Your project must be written in **Go**.
- The code must respect the [**good practices**](https://github.com/01-edu/public/good-practices.en.md).
- The code must respect the [**good practices**](https://github.com/01-edu/public/blob/master/subjects/good-practices.en.md).
- It is recommended that the code should present a **test file**.
- It will be given some [**banner**](https://github.com/01-edu/public/ascii-art) files with a specific graphical template representation of ASCII. The files are formatted in a way that it is not necessary to change them.
- It will be given some [**banner**](https://github.com/01-edu/public/blob/master/subjects/ascii-art/standard.txt) files with a specific graphical template representation of ASCII. The files are formatted in a way that it is not necessary to change them.
### Banner Format

6
subjects/ascii-art/ascii-color.en.md

@ -2,9 +2,10 @@
### Objectives
You must follow the same [instructions](https://github.com/01-edu/public/ascii-art.en.md) as in the first subject but with colors.
You must follow the same [instructions](https://github.com/01-edu/public/blob/master/subjects/ascii-art/ascii-art.en.md) as in the first subject but with colors.
- The output should manipulate colors using the **flag** `--color=<color>`, in which `--color` is the flag and `<color>` is the color of choice.
- The colors must respect the [RGB](https://en.wikipedia.org/wiki/RGB_color_model) concept.
- You should be able to specify a single or a set of letters you want to be colored (use your imagination for this one).
- If the letter isn't specified, the whole `string` should be colored.
@ -12,6 +13,7 @@ This project will help you learn about :
- Client utilities.
- The Go file system(**fs**) API.
- RGB color model.
- Ways to receive data.
- Ways to output data.
- Manipulation of strings.
@ -21,5 +23,5 @@ This project will help you learn about :
### Instructions
- Your project must be written in **Go**.
- The code must respect the [**good practices**](https://github.com/01-edu/public/good-practices.en.md).
- The code must respect the [**good practices**](https://github.com/01-edu/public/blob/master/subjects/good-practices.en.md).
- It is recommended that the code should present a **test file**.

6
subjects/ascii-art/ascii-fs.en.md

@ -2,7 +2,7 @@
### Objectives
You must follow the same [instructions](https://github.com/01-edu/public/ascii-art.en.md) as in the first subject but the second argument must be the name of the template.
You must follow the same [instructions](https://github.com/01-edu/public/blob/master/subjects/ascii-art/ascii-art.en.md) as in the first subject but the second argument must be the name of the template.
This project will help you learn about :
@ -16,9 +16,9 @@ This project will help you learn about :
### Instructions
- Your project must be written in **Go**.
- The code must respect the [**good practices**](https://github.com/01-edu/public/good-practices.en.md).
- The code must respect the [**good practices**](https://github.com/01-edu/public/blob/master/subjects/good-practices.en.md).
- It is recommended that the code should present a **test file**.
- You can see all about the **banners** [here](https://github.com/01-edu/public/ascii-art.en.md).
- You can see all about the **banners** [here](https://github.com/01-edu/public/tree/master/subjects/ascii-art).
### Usage

4
subjects/ascii-art/ascii-justify.en.md

@ -2,7 +2,7 @@
### Objectives
You must follow the same [instructions](https://github.com/01-edu/public/ascii-art.en.md) as in the first subject but the representation should be formatted using a **flag** `--align=<type>`, in which `type` can be :
You must follow the same [instructions](https://github.com/01-edu/public/blob/master/subjects/ascii-art/ascii-art.en.md) as in the first subject but the representation should be formatted using a **flag** `--align=<type>`, in which `type` can be :
- center
- left
@ -21,7 +21,7 @@ This project will help you learn about :
### Instructions
- Your project must be written in **Go**.
- The code must respect the [**good practices**](https://github.com/01-edu/public/good-practices.en.md).
- The code must respect the [**good practices**](https://github.com/01-edu/public/blob/master/subjects/good-practices.en.md).
- It is recommended that the code should present a **test file**.
### Usage

4
subjects/ascii-art/ascii-output.en.md

@ -2,7 +2,7 @@
### Objectives
- You must follow the same [instructions](https://github.com/01-edu/public/ascii-art.en.md) as in the first subject but writing the result into a file.
- You must follow the same [instructions](https://github.com/01-edu/public/blob/master/subjects/ascii-art/ascii-art.en.md) as in the first subject but writing the result into a file.
- The file must be named by using the flag `--output=<fileName.txt>`, in which `--output` is the flag and `<fileName.txt>` is the file name.
@ -18,7 +18,7 @@ This project will help you learn about :
### Instructions
- Your project must be written in **Go**.
- The code must respect the [**good practices**](https://github.com/01-edu/public/good-practices.en.md).
- The code must respect the [**good practices**](https://github.com/01-edu/public/blob/master/subjects/good-practices.en.md).
- It is recommended that the code should present a **test file**.
### Usage

72
subjects/ascii-art/ascii-reverse-example.md

@ -47,13 +47,69 @@
### example03
```console
__ _ _ _ __
/ / | | | | (_) __ _ ___ ____ _____ _ _ \ \
| | ___ ___ _ __ | |_ | |__ _ _ __ / _` | ( _ ) |___ \ |___ / | || | | |
| | / __| / _ \ | '_ \ | __| | _ \ | | | '_ \ | (_| | / _ \/\ __) | |_ \ | || |_ | |
| | \__ \ | (_) | | | | | \ |_ | | | | | | | | | | \__, | | (_> < / __/ ___) | |__ _| | |
| | |___/ \___/ |_| |_| \__| |_| |_| |_| |_| |_| __/ | \___/\/ |_____| |____/ |_| | |
\_\ |___/ /_/
__ _ _ _ __
/ / | | | | (_) __ _ ___ ____ _____ _ _ \ \
| | ___ ___ _ __ | |_ | |__ _ _ __ ___ / _` | ( _ ) |___ \ |___ / | || | | |
| | / __| / _ \ | '_ \ | __| | _ \ | | | '_ ` _ \ | (_| | / _ \/\ __) | |_ \ | || |_ | |
| | \__ \ | (_) | | | | | \ |_ | | | | | | | | | | | | \__, | | (_> < / __/ ___) | |__ _| | |
| | |___/ \___/ |_| |_| \__| |_| |_| |_| |_| |_| |_| __/ | \___/\/ |_____| |____/ |_| | |
\_\ |___/ /_/
```
### example04
```console
_ _ __ _ _ _ _ _
| | | | / _| __ _ | | (_) (_) _ | | | |
__ _ | |__ ___ __| | ___ | |_ / _` | | |__ _ _ | | _ | | _ __ ___ _ __ ___ _ __ __ _ _ __ ___ | |_ _ _ __ __ __ __ __ __ _ _ ____
/ _` | | '_ \ / __| / _` | / _ \ | _| | (_| | | _ \ | | | | | |/ / | | | '_ ` _ \ | '_ \ / _ \ | '_ \ / _` | | '__| / __| | __| | | | | \ \ / / \ \ /\ / / \ \/ / | | | | |_ /
| (_| | | |_) | | (__ | (_| | | __/ | | \__, | | | | | | | | | | < | | | | | | | | | | | | | (_) | | |_) | | (_| | | | \__ \ \ |_ | |_| | \ V / \ V V / > < | |_| | / /
\__,_| |_.__/ \___| \__,_| \___| |_| __/ | |_| |_| |_| | | |_|\_\ |_| |_| |_| |_| |_| |_| \___/ | .__/ \__, | |_| |___/ \__| \__,_| \_/ \_/\_/ /_/\_\ \__, | /___|
|___/ _/ | | | | | __/ /
|__/ |_| |_| |___/
```
### example05
```console
__ _ _ _ _ _ _ _ __ _ __ __ _ __
\ \ | | ( | ) _| || |_ | | (_) / / ___ ( ) / / \ \ /\| |/\ _ / /
\ \ | | V V |_ __ _| / __) / / ( _ ) |/ | | | | \ ` ' / _| |_ ______ / /
\ \ | | _| || |_ \__ \ / / / _ \/\ | | | | |_ _| |_ _| |______| / /
\ \ |_| |_ __ _| ( / / / _ | (_> < | | | | / , . \ |_| _ _ / /
\_\ (_) |_||_| |_| /_/ (_) \___/\/ | | | | \/|_|\/ ( ) (_) /_/
\_\ /_/ |/
```
### example06
```console
__ __ ___
_ _ / / ______ \ \ |__ \ ____
(_) (_) / / |______| \ \ ) | / __ \
< < ______ > > / / / / _` |
_ _ \ \ |______| / / |_| | | (_| |
(_) ( ) \_\ /_/ (_) \ \__,_|
|/ \____/
```
### example07
```console
____ _____ _____ ______ ______ _____ _ _ _____ _ _ __ _ __ __ _ _ ____ _____ ____ _____ _____ _______ _ _ __ __ __ __ __ __ __ __ ______
/\ | _ \ / ____| | __ \ | ____| | ____| / ____| | | | | |_ _| | | | |/ / | | | \/ | | \ | | / __ \ | __ \ / __ \ | __ \ / ____| |__ __| | | | | \ \ / / \ \ / / \ \ / / \ \ / / |___ /
/ \ | |_) | | | | | | | | |__ | |__ | | __ | |__| | | | | | | ' / | | | \ / | | \| | | | | | | |__) | | | | | | |__) | | (___ | | | | | | \ \ / / \ \ /\ / / \ V / \ \_/ / / /
/ /\ \ | _ < | | | | | | | __| | __| | | |_ | | __ | | | _ | | | < | | | |\/| | | . ` | | | | | | ___/ | | | | | _ / \___ \ | | | | | | \ \/ / \ \/ \/ / > < \ / / /
/ ____ \ | |_) | | |____ | |__| | | |____ | | | |__| | | | | | _| |_ | |__| | | . \ | |____ | | | | | |\ | | |__| | | | | |__| | | | \ \ ____) | | | | |__| | \ / \ /\ / / . \ | | / /__
/_/ \_\ |____/ \_____| |_____/ |______| |_| \_____| |_| |_| |_____| \____/ |_|\_\ |______| |_| |_| |_| \_| \____/ |_| \___\_\ |_| \_\ |_____/ |_| \____/ \/ \/ \/ /_/ \_\ |_| /_____|
```

57
subjects/ascii-art/ascii-reverse.audit.en.md

@ -0,0 +1,57 @@
#### Functional Project Questions
##### Try passing to the reverse flag (--reverse=example00.txt) the example 00 (github.com/public/subject/ascii-art/ascii-reverse-example.md).
`Hello World`
###### Does it display the value above?
##### Try passing to the reverse flag (--reverse=example01.txt) the example 01 (github.com/public/subject/ascii-art/ascii-reverse-example.md).
`123`
###### Does it display the value above?
##### Try passing to the reverse flag (--reverse=example02.txt) the example 02 (github.com/public/subject/ascii-art/ascii-reverse-example.md).
`#=\[`
###### Does it display the value above?
##### Try passing to the reverse flag (--reverse=example03.txt) the example 03 (github.com/public/subject/ascii-art/ascii-reverse-example.md).
`(somthing&234)`
###### Does it display the value above?
##### Try passing to the reverse flag (--reverse=example04.txt) the example 04 (github.com/public/subject/ascii-art/ascii-reverse-example.md).
`abcdefghijklmnopqrstuvwxyz`
###### Does it display the value above?
##### Try passing to the reverse flag (--reverse=example05.txt) the example 05 (github.com/public/subject/ascii-art/ascii-reverse-example.md).
`\!" #$%&'()*+,-./`
###### Does it display the value above?
##### Try passing to the reverse flag (--reverse=example06.txt) the example 06 (github.com/public/subject/ascii-art/ascii-reverse-example.md).
`:;<=>?@`
###### Does it display the value above?
##### Try passing to the reverse flag (--reverse=example07.txt) the example 07 (github.com/public/subject/ascii-art/ascii-reverse-example.md).
`ABCDEFGHIJKLMNOPQRSTUVWXYZ`
###### Does it display the value above?
#### Basic
###### *Has the code passed the formatting? (gofmt, goimports)
###### *Does the project runs quickly and effectively? (Favoring recursive, no unnecessary data requests, etc)
###### *Does the code present commenting (https://github.com/01-edu/public/blob/master/subjects/good-practices.en.md)?
###### *Does the code present documentation?
###### *Does it present consistent indentation?
###### *Does the code avoid obvious comments? (no over information)
###### *Does the code avoid code grouping?
###### *Does the code have a consistent naming scheme (camelCase, under_scores)?
###### *Does the code obey the principles "DRY" (Don't Repeat Yourself) or "DIE" (Duplication is Evil)?
###### *Does the code obey the principal "KISS" (keep it simple, stupid)?
###### *Does the code obey the principle "YAGNI" (You Are not Gonna Need It)?
###### *Does the code obey the principle "SOC" (Separation of Concerns)?
###### *Does the code avoid deep nesting (if in ifs, forest of ifs)?
###### *Does the code present a good file and folder organization?
###### *Does it present a good separation of Code and Data?
###### *Does the go code follow the go recommendation? (https://github.com/01-edu/public/blob/master/subjects/good-practices.en.md)
###### *Is the error handled, is it error free?
###### *Is there a test file for this code?
###### *Are the tests checking each case possible?
###### *Is the output of the program well structured? Does any letter seems to be out of line?
#### Social
###### *Did you learn anything from this project?
###### *Can it be open-sourced / be used for other sources?
###### *Would you recommend/nominate this program as an example for the rest of the school?

4
subjects/ascii-art/ascii-reverse.en.md

@ -2,7 +2,7 @@
### Objectives
You must follow the same [instructions](https://github.com/01-edu/public/ascii-art.en.md) as in the first subject.
You must follow the same [instructions](https://github.com/01-edu/public/blob/master/subjects/ascii-art/ascii-art.en.md) as in the first subject.
- Ascii-reverse consists on reversing the process, converting the graphic representation into a text.
- You will have to create a text file containing a graphic representation of a random `string`.
@ -21,7 +21,7 @@ This project will help you learn about :
### Instructions
- Your project must be written in **Go**.
- The code must respect the [**good practices**](https://github.com/01-edu/public/good-practices.en.md).
- The code must respect the [**good practices**](https://github.com/01-edu/public/blob/master/subjects/good-practices.en.md).
- It is recommended that the code should present a **test file**.
### Usage

3
subjects/ascii-art/standard.txt

@ -368,7 +368,6 @@ __
_____
|_ _|
| |
@ -376,6 +375,7 @@ __
_| |_
|_____|
_
| |
@ -818,7 +818,6 @@ __ __
__
/ /
| |

11
subjects/badexample00.md

@ -0,0 +1,11 @@
## bad example
- Create your file and copy the example into it.
```
####
...#
....
....
```

11
subjects/badexample01.md

@ -0,0 +1,11 @@
## bad example
- Create your file and copy the example into it.
```
...#
..#.
.#..
#...
```

11
subjects/badexample02.md

@ -0,0 +1,11 @@
## bad example
- Create your file and copy the example into it.
```
...#
..#.
.#..
#...
```

11
subjects/badexample03.md

@ -0,0 +1,11 @@
## bad example
- Create your file and copy the example into it.
```
....
....
....
....
```

11
subjects/badexample04.md

@ -0,0 +1,11 @@
## bad example
- Create your file and copy the example into it.
```
..##
....
....
##..
```

26
subjects/badformat.md

@ -0,0 +1,26 @@
## bad example
- Create your file and copy the example into it.
```
...#
...#
...#
...#
....
....
....
####
.###
...#
....
....
....
..##
.##.
....
```

2
subjects/cat.en.md

@ -12,7 +12,7 @@ Write a program that has the same behaviour as the system's `cat` command-line.
- Copy to the `quest8.txt` file the following sentence :
`"Programming is a skill best acquired by pratice and example rather than from books" by Alan Turing`
`"Programming is a skill best acquired by practice and example rather than from books" by Alan Turing`
- Copy to the `quest8T.txt` file the following sentence :

2
subjects/go-reloaded.en.md

@ -671,7 +671,7 @@ Write a program that has the same behaviour as the system's `cat` command-line.
- Copy to the `quest8.txt` file the following sentence :
`"Programming is a skill best acquired by pratice and example rather than from books" by Alan Turing`
`"Programming is a skill best acquired by practice and example rather than from books" by Alan Turing`
- Copy to the `quest8T.txt` file the following sentence :

11
subjects/goodexample00.md

@ -0,0 +1,11 @@
## good example
- Create your file and copy the example into it.
```console
....
.##.
.##.
....
```

26
subjects/goodexample01.md

@ -0,0 +1,26 @@
## good example
- Create your file and copy the example into it.
```
...#
...#
...#
...#
....
....
....
####
.###
...#
....
....
....
..##
.##.
....
```

46
subjects/goodexample02.md

@ -0,0 +1,46 @@
## good example
- Create your file and copy the example into it.
```
...#
...#
...#
...#
....
....
....
####
.###
...#
....
....
....
..##
.##.
....
....
.##.
.##.
....
....
....
##..
.##.
##..
.#..
.#..
....
....
###.
.#..
....
```

61
subjects/goodexample03.md

@ -0,0 +1,61 @@
## good example
- Create your file and copy the example into it.
```
....
.##.
.##.
....
...#
...#
...#
...#
....
..##
.##.
....
....
.##.
.##.
....
....
..#.
.##.
.#..
.###
...#
....
....
##..
.#..
.#..
....
....
..##
.##.
....
##..
.#..
.#..
....
.#..
.##.
..#.
....
....
###.
.#..
....
```

66
subjects/hardexam.md

@ -0,0 +1,66 @@
## hard example
- Create your file and copy the example into it.
```
....
.##.
.##.
....
.#..
.##.
.#..
....
....
..##
.##.
....
....
.##.
.##.
....
....
..#.
.##.
.#..
.###
...#
....
....
##..
.#..
.#..
....
....
.##.
.##.
....
....
..##
.##.
....
##..
.#..
.#..
....
.#..
.##.
..#.
....
....
###.
.#..
....
```

4
subjects/listat.en.md

@ -51,8 +51,8 @@ And its output :
```console
student@ubuntu:~/[[ROOT]]/test$ go build
student@ubuntu:~/[[ROOT]]/test$ ./test
1
how are
you
hello
<nil>
student@ubuntu:~/[[ROOT]]/test$
```

2
subjects/listforeachif.en.md

@ -38,7 +38,7 @@ func IsPositive_node(node *NodeL) bool {
func IsNegative_node(node *NodeL) bool {
switch node.Data.(type) {
case int, float32, float64, byte:
return node.Data.(int) > 0
return node.Data.(int) < 0
case string, rune:
return false
}

4
subjects/printchessboard.en.md

@ -2,9 +2,9 @@
### Instructions
Write a program that takes a two integer as argument and displays the chess desk, where white cells `' '` and black cells `'#'`.
Write a program that takes two integers as arguments and displays the chess desk, in which white cells are represented by `' '` and black cells by `'#'`.
- If the number of arguments is different from 2, or if the argument is not a positive number, the program displays `Error` followed by a newline (`'\n'`).
- If the number of arguments is different from 2, or if the argument is not a positive number, the program displays `Error` followed by a newline (`'\n'`).
### Usage

11
subjects/robottoorigin.en.md

@ -7,7 +7,8 @@ There is a robot at position (0, 0) at 2D map.
Write a program, that outputs `true` if robot ends up at the origin (0, 0) after a sequence of moves, otherwise `false`. `\n` should be in the end of line.
Sequence of moves is a string, which characters state for movement direction:
- U - up
- U - up
- D - down
- R - right
- L - left
@ -17,13 +18,13 @@ If the number of arguments is not 1, output `\n`.
### Usage
```console
$> go build
$> ./main "UD"
student@ubuntu:~/[[ROOT]]/test$ go build
student@ubuntu:~/[[ROOT]]/test$ ./main "UD"
true
$> ./main "LL"
student@ubuntu:~/[[ROOT]]/test$ ./main "LL"
false
```
In first case, the robot moves up and the down. So, it returned back to its origin position.
In second example, the robot moves twice to the left. It is 2 positons left from its origin. So, program should output false.
In second example, the robot moves twice to the left. It is 2 positions left from its origin, so the program outputs false.

11
subjects/twosum.en.md

@ -11,18 +11,23 @@ This means that:
- The function main declared needs to **also pass** the `Restrictions Checker`(illegal functions tester). It is advised for the student to just empty the function main after its own testings are done.
- Every other rules are obviously the same than for a `program`.
### Instructions:
Given an array of integers, return indices of the two numbers such that they add up to a specific target.
### Instructions
Given an array of integers, return indexes of the two numbers such that they add up to a specific target.
If there are more than one solution, return the first one.
If there are no solutions, return nil.
Expected function:
Expected function :
```go
func TwoSum(nums []int, target int) []int {
}
```
Here is a possible [program](TODO-LINK) to test your function :
```go
package main

Loading…
Cancel
Save