mirror of https://github.com/01-edu/public.git
OGordoo
4 years ago
committed by
GitHub
24 changed files with 1363 additions and 189 deletions
@ -0,0 +1,39 @@
|
||||
#### Functionals |
||||
|
||||
##### Try to open a story post |
||||
|
||||
###### Does this post open without problems? |
||||
|
||||
##### Try to open a job post |
||||
|
||||
###### Does this post open without problems? |
||||
|
||||
##### Try to open a poll post |
||||
|
||||
###### Does this post open without problems? |
||||
|
||||
##### Try to load more posts |
||||
|
||||
###### Did the posts loaded without error or without spamming the user? |
||||
|
||||
##### Try to open a post with comments |
||||
|
||||
###### Are the comments being displayed in the correct order (from newest to oldest)? |
||||
|
||||
#### General |
||||
|
||||
###### Does the UI have at least stories, jobs and polls? |
||||
|
||||
###### Are the posts displayed in the correct order(from newest to oldest)? |
||||
|
||||
###### Does each comment present the right parent post? |
||||
|
||||
###### Is the UI notifying the user that there is a new update on a certain post? |
||||
|
||||
###### Is the project using Throttle to regulate the amount of request (every 5 seconds)? |
||||
|
||||
#### Bonus |
||||
|
||||
###### +Does the UI have more types of posts than stories, jobs and polls? |
||||
|
||||
###### +Are there sub-comments(nested comments) on the UI? |
@ -0,0 +1,569 @@
|
||||
# quadrangle |
||||
|
||||
## quadA |
||||
|
||||
### Instructions |
||||
|
||||
Write a function `QuadA` that prints a **valid** rectangle of width `x` and of height `y`. |
||||
|
||||
The function must draw the rectangles as in the examples. |
||||
|
||||
`x` and `y` will always be positive numbers. Otherwise, the function should print nothing. |
||||
|
||||
### Expected function |
||||
|
||||
```go |
||||
func QuadA(x,y int) { |
||||
|
||||
} |
||||
``` |
||||
|
||||
### Usage |
||||
|
||||
Here are possible programs to test your function : |
||||
|
||||
Program #1 |
||||
|
||||
```go |
||||
package main |
||||
|
||||
import piscine ".." |
||||
|
||||
func main() { |
||||
piscine.QuadA(5,3) |
||||
} |
||||
``` |
||||
|
||||
And its output : |
||||
|
||||
```console |
||||
student@ubuntu:~/[[ROOT]]/test$ go build |
||||
student@ubuntu:~/[[ROOT]]/test$ ./test |
||||
o---o |
||||
| | |
||||
o---o |
||||
student@ubuntu:~/[[ROOT]]/test$ |
||||
``` |
||||
|
||||
Program #2 |
||||
|
||||
```go |
||||
package main |
||||
|
||||
import piscine ".." |
||||
|
||||
func main() { |
||||
piscine.QuadA(5,1) |
||||
} |
||||
``` |
||||
|
||||
And its output : |
||||
|
||||
```console |
||||
student@ubuntu:~/[[ROOT]]/test$ go build |
||||
student@ubuntu:~/[[ROOT]]/test$ ./test |
||||
o---o |
||||
student@ubuntu:~/[[ROOT]]/test$ |
||||
``` |
||||
|
||||
Program #3 |
||||
|
||||
```go |
||||
package main |
||||
|
||||
import piscine ".." |
||||
|
||||
func main() { |
||||
piscine.QuadA(1,1) |
||||
} |
||||
``` |
||||
|
||||
And its output : |
||||
|
||||
```console |
||||
student@ubuntu:~/[[ROOT]]/test$ go build |
||||
student@ubuntu:~/[[ROOT]]/test$ ./test |
||||
o |
||||
student@ubuntu:~/[[ROOT]]/test$ |
||||
``` |
||||
|
||||
Program #4 |
||||
|
||||
```go |
||||
package main |
||||
|
||||
import piscine ".." |
||||
|
||||
func main() { |
||||
piscine.QuadA(1,5) |
||||
} |
||||
``` |
||||
|
||||
And its output : |
||||
|
||||
```console |
||||
student@ubuntu:~/[[ROOT]]/test$ go build |
||||
student@ubuntu:~/[[ROOT]]/test$ ./test |
||||
o |
||||
| |
||||
| |
||||
| |
||||
o |
||||
student@ubuntu:~/[[ROOT]]/test$ |
||||
``` |
||||
|
||||
---- |
||||
|
||||
## quadB |
||||
|
||||
### Instructions |
||||
|
||||
Write a function `QuadB` that prints a **valid** rectangle of width `x` and of height `y`. |
||||
|
||||
The function must draw the rectangles as in the examples. |
||||
|
||||
`x` and `y` will always be positive numbers. Otherwise, the function should print nothing. |
||||
|
||||
### Expected function |
||||
|
||||
```go |
||||
func QuadB(x,y int) { |
||||
|
||||
} |
||||
``` |
||||
|
||||
### Usage |
||||
|
||||
Here are possible programs to test your function : |
||||
|
||||
Program #1 |
||||
|
||||
```go |
||||
package main |
||||
|
||||
import piscine ".." |
||||
|
||||
func main() { |
||||
piscine.QuadB(5,3) |
||||
} |
||||
``` |
||||
|
||||
And its output : |
||||
|
||||
```console |
||||
student@ubuntu:~/[[ROOT]]/test$ go build |
||||
student@ubuntu:~/[[ROOT]]/test$ ./test |
||||
/***\ |
||||
* * |
||||
\***/ |
||||
student@ubuntu:~/[[ROOT]]/test$ |
||||
``` |
||||
|
||||
Program #2 |
||||
|
||||
```go |
||||
package main |
||||
|
||||
import piscine ".." |
||||
|
||||
func main() { |
||||
piscine.QuadB(5,1) |
||||
} |
||||
``` |
||||
|
||||
And its output : |
||||
|
||||
```console |
||||
student@ubuntu:~/[[ROOT]]/test$ go build |
||||
student@ubuntu:~/[[ROOT]]/test$ ./test |
||||
/***\ |
||||
student@ubuntu:~/[[ROOT]]/test$ |
||||
``` |
||||
|
||||
Program #3 |
||||
|
||||
```go |
||||
package main |
||||
|
||||
import piscine ".." |
||||
|
||||
func main() { |
||||
piscine.QuadB(1,1) |
||||
} |
||||
``` |
||||
|
||||
And its output : |
||||
|
||||
```console |
||||
student@ubuntu:~/[[ROOT]]/test$ go build |
||||
student@ubuntu:~/[[ROOT]]/test$ ./test |
||||
/ |
||||
student@ubuntu:~/[[ROOT]]/test$ |
||||
``` |
||||
|
||||
Program #4 |
||||
|
||||
```go |
||||
package main |
||||
|
||||
import piscine ".." |
||||
|
||||
func main() { |
||||
piscine.QuadB(1,5) |
||||
} |
||||
``` |
||||
|
||||
And its output : |
||||
|
||||
```console |
||||
student@ubuntu:~/[[ROOT]]/test$ go build |
||||
student@ubuntu:~/[[ROOT]]/test$ ./test |
||||
/ |
||||
* |
||||
* |
||||
* |
||||
\ |
||||
student@ubuntu:~/[[ROOT]]/test$ |
||||
``` |
||||
|
||||
---- |
||||
|
||||
## quadC |
||||
|
||||
### Instructions |
||||
|
||||
Write a function `QuadC` that prints a **valid** rectangle of width `x` and of height `y`. |
||||
|
||||
The function must draw the rectangles as in the examples. |
||||
|
||||
`x` and `y` will always be positive numbers. Otherwise, the function should print nothing. |
||||
|
||||
### Expected function |
||||
|
||||
```go |
||||
func QuadC(x,y int) { |
||||
|
||||
} |
||||
``` |
||||
|
||||
### Usage |
||||
|
||||
Here are possible programs to test your function : |
||||
|
||||
Program #1 |
||||
|
||||
```go |
||||
package main |
||||
|
||||
import piscine ".." |
||||
|
||||
func main() { |
||||
piscine.QuadC(5,3) |
||||
} |
||||
``` |
||||
|
||||
And its output : |
||||
|
||||
```console |
||||
student@ubuntu:~/[[ROOT]]/test$ go build |
||||
student@ubuntu:~/[[ROOT]]/test$ ./test |
||||
ABBBA |
||||
B B |
||||
CBBBC |
||||
student@ubuntu:~/[[ROOT]]/test$ |
||||
``` |
||||
|
||||
Program #2 |
||||
|
||||
```go |
||||
package main |
||||
|
||||
import piscine ".." |
||||
|
||||
func main() { |
||||
piscine.QuadC(5,1) |
||||
} |
||||
``` |
||||
|
||||
And its output : |
||||
|
||||
```console |
||||
student@ubuntu:~/[[ROOT]]/test$ go build |
||||
student@ubuntu:~/[[ROOT]]/test$ ./test |
||||
ABBBA |
||||
student@ubuntu:~/[[ROOT]]/test$ |
||||
``` |
||||
|
||||
Program #3 |
||||
|
||||
```go |
||||
package main |
||||
|
||||
import piscine ".." |
||||
|
||||
func main() { |
||||
piscine.QuadC(1,1) |
||||
} |
||||
``` |
||||
|
||||
And its output : |
||||
|
||||
```console |
||||
student@ubuntu:~/[[ROOT]]/test$ go build |
||||
student@ubuntu:~/[[ROOT]]/test$ ./test |
||||
A |
||||
student@ubuntu:~/[[ROOT]]/test$ |
||||
``` |
||||
|
||||
Program #4 |
||||
|
||||
```go |
||||
package main |
||||
|
||||
import piscine ".." |
||||
|
||||
func main() { |
||||
piscine.QuadC(1,5) |
||||
} |
||||
``` |
||||
|
||||
And its output : |
||||
|
||||
```console |
||||
student@ubuntu:~/[[ROOT]]/test$ go build |
||||
student@ubuntu:~/[[ROOT]]/test$ ./test |
||||
A |
||||
B |
||||
B |
||||
B |
||||
C |
||||
student@ubuntu:~/[[ROOT]]/test$ |
||||
``` |
||||
|
||||
---- |
||||
|
||||
## quadD |
||||
|
||||
### Instructions |
||||
|
||||
Write a function `QuadD` that prints a **valid** rectangle of width `x` and of height `y`. |
||||
|
||||
The function must draw the rectangles as in the examples. |
||||
|
||||
`x` and `y` will always be positive numbers. Otherwise, the function should print nothing. |
||||
|
||||
### Expected function |
||||
|
||||
```go |
||||
func QuadD(x,y int) { |
||||
|
||||
} |
||||
``` |
||||
|
||||
### Usage |
||||
|
||||
Here are possible programs to test your function : |
||||
|
||||
Program #1 |
||||
|
||||
```go |
||||
package main |
||||
|
||||
import piscine ".." |
||||
|
||||
func main() { |
||||
piscine.QuadD(5,3) |
||||
} |
||||
``` |
||||
|
||||
And its output : |
||||
|
||||
```console |
||||
student@ubuntu:~/[[ROOT]]/test$ go build |
||||
student@ubuntu:~/[[ROOT]]/test$ ./test |
||||
ABBBC |
||||
B B |
||||
ABBBC |
||||
student@ubuntu:~/[[ROOT]]/test$ |
||||
``` |
||||
|
||||
Program #2 |
||||
|
||||
```go |
||||
package main |
||||
|
||||
import piscine ".." |
||||
|
||||
func main() { |
||||
piscine.QuadD(5,1) |
||||
} |
||||
``` |
||||
|
||||
And its output : |
||||
|
||||
```console |
||||
student@ubuntu:~/[[ROOT]]/test$ go build |
||||
student@ubuntu:~/[[ROOT]]/test$ ./test |
||||
ABBBC |
||||
student@ubuntu:~/[[ROOT]]/test$ |
||||
``` |
||||
|
||||
Program #3 |
||||
|
||||
```go |
||||
package main |
||||
|
||||
import piscine ".." |
||||
|
||||
func main() { |
||||
piscine.QuadD(1,1) |
||||
} |
||||
``` |
||||
|
||||
And its output : |
||||
|
||||
```console |
||||
student@ubuntu:~/[[ROOT]]/test$ go build |
||||
student@ubuntu:~/[[ROOT]]/test$ ./test |
||||
A |
||||
student@ubuntu:~/[[ROOT]]/test$ |
||||
``` |
||||
|
||||
Program #4 |
||||
|
||||
```go |
||||
package main |
||||
|
||||
import piscine ".." |
||||
|
||||
func main() { |
||||
piscine.QuadD(1,5) |
||||
} |
||||
``` |
||||
|
||||
And its output : |
||||
|
||||
```console |
||||
student@ubuntu:~/[[ROOT]]/test$ go build |
||||
student@ubuntu:~/[[ROOT]]/test$ ./test |
||||
A |
||||
B |
||||
B |
||||
B |
||||
A |
||||
student@ubuntu:~/[[ROOT]]/test$ |
||||
``` |
||||
|
||||
---- |
||||
|
||||
## quadE |
||||
|
||||
### Instructions |
||||
|
||||
Write a function `QuadE` that prints a **valid** rectangle of width `x` and of height `y`. |
||||
|
||||
The function must draw the rectangles as in the examples. |
||||
|
||||
`x` and `y` will always be positive numbers. Otherwise, the function should print nothing. |
||||
|
||||
### Expected function |
||||
|
||||
```go |
||||
func QuadE(x,y int) { |
||||
|
||||
} |
||||
``` |
||||
|
||||
### Usage |
||||
|
||||
Here are possible programs to test your function : |
||||
|
||||
Program #1 |
||||
|
||||
```go |
||||
package main |
||||
|
||||
import piscine ".." |
||||
|
||||
func main() { |
||||
piscine.QuadE(5,3) |
||||
} |
||||
``` |
||||
|
||||
And its output : |
||||
|
||||
```console |
||||
student@ubuntu:~/[[ROOT]]/test$ go build |
||||
student@ubuntu:~/[[ROOT]]/test$ ./test |
||||
ABBBC |
||||
B B |
||||
CBBBA |
||||
student@ubuntu:~/[[ROOT]]/test$ |
||||
``` |
||||
|
||||
Program #2 |
||||
|
||||
```go |
||||
package main |
||||
|
||||
import piscine ".." |
||||
|
||||
func main() { |
||||
piscine.QuadE(5,1) |
||||
} |
||||
``` |
||||
|
||||
And its output : |
||||
|
||||
```console |
||||
student@ubuntu:~/[[ROOT]]/test$ go build |
||||
student@ubuntu:~/[[ROOT]]/test$ ./test |
||||
ABBBC |
||||
student@ubuntu:~/[[ROOT]]/test$ |
||||
``` |
||||
|
||||
Program #3 |
||||
|
||||
```go |
||||
package main |
||||
|
||||
import piscine ".." |
||||
|
||||
func main() { |
||||
piscine.QuadE(1,1) |
||||
} |
||||
``` |
||||
|
||||
And its output : |
||||
|
||||
```console |
||||
student@ubuntu:~/[[ROOT]]/test$ go build |
||||
student@ubuntu:~/[[ROOT]]/test$ ./test |
||||
A |
||||
student@ubuntu:~/[[ROOT]]/test$ |
||||
``` |
||||
|
||||
Program #4 |
||||
|
||||
```go |
||||
package main |
||||
|
||||
import piscine ".." |
||||
|
||||
func main() { |
||||
piscine.QuadE(1,5) |
||||
} |
||||
``` |
||||
|
||||
And its output : |
||||
|
||||
```console |
||||
student@ubuntu:~/[[ROOT]]/test$ go build |
||||
student@ubuntu:~/[[ROOT]]/test$ ./test |
||||
A |
||||
B |
||||
B |
||||
B |
||||
C |
||||
student@ubuntu:~/[[ROOT]]/test$ |
||||
``` |
@ -0,0 +1,435 @@
|
||||
#### quadA |
||||
|
||||
##### Try running the function with the arguments: `"x=5 and y=3"` |
||||
|
||||
``` |
||||
o---o |
||||
| | |
||||
o---o |
||||
``` |
||||
|
||||
###### Does the function returns the value above? |
||||
|
||||
##### Try running the function with the arguments: `"x=5 and y=1"` |
||||
|
||||
``` |
||||
o---o |
||||
``` |
||||
|
||||
###### Does the function returns the value above? |
||||
|
||||
##### Try running the function with the arguments: `"x=1 and y=1"` |
||||
|
||||
``` |
||||
o |
||||
``` |
||||
|
||||
###### Does the function returns the value above? |
||||
|
||||
##### Try running the function with the arguments: `"x=1 and y=5"` |
||||
|
||||
``` |
||||
o |
||||
| |
||||
| |
||||
| |
||||
o |
||||
``` |
||||
|
||||
###### Does the function returns the value above? |
||||
|
||||
##### Try running the function with the arguments: `"x=0 and y=0"` |
||||
|
||||
###### Does the function returns nothing? |
||||
|
||||
##### Try running the function with the arguments: `"x=-1 and y=6"` |
||||
|
||||
###### Does the function returns nothing? |
||||
|
||||
##### Try running the function with the arguments: `"x=6 and y=-1"` |
||||
|
||||
###### Does the function returns nothing? |
||||
|
||||
##### Try running the function with the arguments: `"x=20 and y=1"` |
||||
|
||||
``` |
||||
o------------------o |
||||
``` |
||||
|
||||
###### Does the function returns the value above? |
||||
|
||||
##### Try running the function with the arguments: `"x=10 and y=8"` |
||||
|
||||
``` |
||||
o--------o |
||||
| | |
||||
| | |
||||
| | |
||||
| | |
||||
| | |
||||
| | |
||||
o--------o |
||||
``` |
||||
|
||||
###### Does the function returns the value above? |
||||
|
||||
#### quadC |
||||
|
||||
##### Try running the function with the arguments: `"x=5 and y=3"` |
||||
|
||||
``` |
||||
/***\ |
||||
* * |
||||
\***/ |
||||
``` |
||||
|
||||
###### Does the function returns the value above? |
||||
|
||||
##### Try running the function with the arguments: `"x=5 and y=1"` |
||||
|
||||
``` |
||||
/***\ |
||||
``` |
||||
|
||||
###### Does the function returns the value above? |
||||
|
||||
##### Try running the function with the arguments: `"x=1 and y=1"` |
||||
|
||||
``` |
||||
/ |
||||
``` |
||||
|
||||
###### Does the function returns the value above? |
||||
|
||||
##### Try running the function with the arguments: `"x=1 and y=5"` |
||||
|
||||
``` |
||||
/ |
||||
* |
||||
* |
||||
* |
||||
\ |
||||
``` |
||||
|
||||
###### Does the function returns the value above? |
||||
|
||||
##### Try running the function with the arguments: `"x=0 and y=0"` |
||||
|
||||
###### Does the function returns nothing? |
||||
|
||||
##### Try running the function with the arguments: `"x=-1 and y=6"` |
||||
|
||||
###### Does the function returns nothing? |
||||
|
||||
##### Try running the function with the arguments: `"x=6 and y=-1"` |
||||
|
||||
###### Does the function returns nothing? |
||||
|
||||
##### Try running the function with the arguments: `"x=18 and y=6"` |
||||
|
||||
``` |
||||
/****************\ |
||||
* * |
||||
* * |
||||
* * |
||||
* * |
||||
\****************/ |
||||
``` |
||||
|
||||
###### Does the function returns the value above? |
||||
|
||||
##### Try running the function with the arguments: `"x=9 and y=3"` |
||||
|
||||
``` |
||||
/*******\ |
||||
* * |
||||
\*******/ |
||||
``` |
||||
|
||||
###### Does the function returns the value above? |
||||
|
||||
#### quadC |
||||
|
||||
##### Try running the function with the arguments: `"x=5 and y=3"` |
||||
|
||||
``` |
||||
ABBBA |
||||
B B |
||||
CBBBC |
||||
``` |
||||
|
||||
###### Does the function returns the value above? |
||||
|
||||
##### Try running the function with the arguments: `"x=5 and y=1"` |
||||
|
||||
``` |
||||
ABBBA |
||||
``` |
||||
|
||||
###### Does the function returns the value above? |
||||
|
||||
##### Try running the function with the arguments: `"x=1 and y=1"` |
||||
|
||||
``` |
||||
A |
||||
``` |
||||
|
||||
###### Does the function returns the value above? |
||||
|
||||
##### Try running the function with the arguments: `"x=1 and y=5"` |
||||
|
||||
``` |
||||
A |
||||
B |
||||
B |
||||
B |
||||
C |
||||
``` |
||||
|
||||
###### Does the function returns the value above? |
||||
|
||||
##### Try running the function with the arguments: `"x=0 and y=0"` |
||||
|
||||
###### Does the function returns nothing? |
||||
|
||||
##### Try running the function with the arguments: `"x=-1 and y=6"` |
||||
|
||||
###### Does the function returns nothing? |
||||
|
||||
##### Try running the function with the arguments: `"x=6 and y=-1"` |
||||
|
||||
###### Does the function returns nothing? |
||||
|
||||
##### Try running the function with the arguments: `"x=13 and y=7"` |
||||
|
||||
``` |
||||
ABBBBBBBBBBBA |
||||
B B |
||||
B B |
||||
B B |
||||
B B |
||||
B B |
||||
CBBBBBBBBBBBC |
||||
``` |
||||
|
||||
###### Does the function returns the value above? |
||||
|
||||
##### Try running the function with the arguments: `"x=10 and y=15"` |
||||
|
||||
``` |
||||
ABBBBBBBBA |
||||
B B |
||||
B B |
||||
B B |
||||
B B |
||||
B B |
||||
B B |
||||
B B |
||||
B B |
||||
B B |
||||
B B |
||||
B B |
||||
B B |
||||
B B |
||||
CBBBBBBBBC |
||||
``` |
||||
|
||||
###### Does the function returns the value above? |
||||
|
||||
#### quadD |
||||
|
||||
##### Try running the function with the arguments: `"x=5 and y=3"` |
||||
|
||||
``` |
||||
ABBBC |
||||
B B |
||||
ABBBC |
||||
``` |
||||
|
||||
###### Does the function returns the value above? |
||||
|
||||
##### Try running the function with the arguments: `"x=5 and y=1"` |
||||
|
||||
``` |
||||
ABBBC |
||||
``` |
||||
|
||||
###### Does the function returns the value above? |
||||
|
||||
##### Try running the function with the arguments: `"x=1 and y=1"` |
||||
|
||||
``` |
||||
A |
||||
``` |
||||
|
||||
###### Does the function returns the value above? |
||||
|
||||
##### Try running the function with the arguments: `"x=1 and y=5"` |
||||
|
||||
``` |
||||
A |
||||
B |
||||
B |
||||
B |
||||
A |
||||
``` |
||||
|
||||
###### Does the function returns the value above? |
||||
|
||||
##### Try running the function with the arguments: `"x=0 and y=0"` |
||||
|
||||
###### Does the function returns nothing? |
||||
|
||||
##### Try running the function with the arguments: `"x=-1 and y=6"` |
||||
|
||||
###### Does the function returns nothing? |
||||
|
||||
##### Try running the function with the arguments: `"x=6 and y=-1"` |
||||
|
||||
###### Does the function returns nothing? |
||||
|
||||
##### Try running the function with the arguments: `"x=3 and y=16"` |
||||
|
||||
``` |
||||
ABC |
||||
B B |
||||
B B |
||||
B B |
||||
B B |
||||
B B |
||||
B B |
||||
B B |
||||
B B |
||||
B B |
||||
B B |
||||
B B |
||||
B B |
||||
B B |
||||
B B |
||||
ABC |
||||
``` |
||||
|
||||
###### Does the function returns the value above? |
||||
|
||||
##### Try running the function with the arguments: `"x=7 and y=16"` |
||||
|
||||
``` |
||||
ABBBBBC |
||||
B B |
||||
B B |
||||
B B |
||||
B B |
||||
B B |
||||
B B |
||||
B B |
||||
B B |
||||
B B |
||||
B B |
||||
B B |
||||
B B |
||||
B B |
||||
B B |
||||
ABBBBBC |
||||
``` |
||||
|
||||
###### Does the function returns the value above? |
||||
|
||||
#### quadE |
||||
|
||||
##### Try running the function with the arguments: `"x=5 and y=3"` |
||||
|
||||
``` |
||||
ABBBC |
||||
B B |
||||
CBBBA |
||||
``` |
||||
|
||||
###### Does the function returns the value above? |
||||
|
||||
##### Try running the function with the arguments: `"x=5 and y=1"` |
||||
|
||||
``` |
||||
ABBBC |
||||
``` |
||||
|
||||
###### Does the function returns the value above? |
||||
|
||||
##### Try running the function with the arguments: `"x=1 and y=1"` |
||||
|
||||
``` |
||||
A |
||||
``` |
||||
|
||||
###### Does the function returns the value above? |
||||
|
||||
##### Try running the function with the arguments: `"x=1 and y=5"` |
||||
|
||||
``` |
||||
A |
||||
B |
||||
B |
||||
B |
||||
C |
||||
``` |
||||
|
||||
###### Does the function returns the value above? |
||||
|
||||
##### Try running the function with the arguments: `"x=0 and y=0"` |
||||
|
||||
###### Does the function returns nothing? |
||||
|
||||
##### Try running the function with the arguments: `"x=-1 and y=6"` |
||||
|
||||
###### Does the function returns nothing? |
||||
|
||||
##### Try running the function with the arguments: `"x=6 and y=-1"` |
||||
|
||||
###### Does the function returns nothing? |
||||
|
||||
##### Try running the function with the arguments: `"x=21 and y=24"` |
||||
|
||||
``` |
||||
ABBBBBBBBBBBBBBBBBBBC |
||||
B B |
||||
B B |
||||
B B |
||||
B B |
||||
B B |
||||
B B |
||||
B B |
||||
B B |
||||
B B |
||||
B B |
||||
B B |
||||
B B |
||||
B B |
||||
B B |
||||
B B |
||||
B B |
||||
B B |
||||
B B |
||||
B B |
||||
B B |
||||
B B |
||||
B B |
||||
CBBBBBBBBBBBBBBBBBBBA |
||||
|
||||
``` |
||||
|
||||
###### Does the function returns the value above? |
||||
|
||||
##### Try running the function with the arguments: `"x=18 and y=8"` |
||||
|
||||
``` |
||||
ABBBBBBBBBBBBBBBBC |
||||
B B |
||||
B B |
||||
B B |
||||
B B |
||||
B B |
||||
B B |
||||
CBBBBBBBBBBBBBBBBA |
||||
|
||||
``` |
||||
|
||||
###### Does the function returns the value above? |
@ -0,0 +1,62 @@
|
||||
## quadchecker |
||||
|
||||
### Instructions |
||||
|
||||
This raid is based on the `quad` functions. |
||||
|
||||
Create a program `quadchecker` that takes a `string` as an argument and displays the name of the matching `quad` and its dimensions. |
||||
|
||||
- If the argument is not a `raid` the program should print `Not a Raid function`. |
||||
|
||||
- All answers must end with a newline (`'\n'`). |
||||
|
||||
- If there is more than one `quad` matches, the program must display them all alphabetically ordered and separated by a `||`. |
||||
|
||||
### Usage |
||||
|
||||
- If it's `quadA` |
||||
|
||||
```console |
||||
student@ubuntu:~/[[ROOT]]/quadchecker$ ls -l |
||||
-rw-r--r-- 1 student student nov 23 14:30 main.go |
||||
-rwxr-xr-x 1 student student nov 23 19:18 quadchecker |
||||
-rwxr-xr-x 1 student student nov 23 19:50 quadA |
||||
-rwxr-xr-x 1 student student nov 23 19:50 quadB |
||||
-rwxr-xr-x 1 student student nov 23 19:50 quadC |
||||
-rwxr-xr-x 1 student student nov 23 19:50 quadD |
||||
-rwxr-xr-x 1 student student nov 23 19:50 quadE |
||||
student@ubuntu:~/[[ROOT]]/quadchecker$ ./quadA 3 3 | ./quadchecker |
||||
[quadA] [3] [3] |
||||
student@ubuntu:~/[[ROOT]]/quadchecker$ |
||||
student@ubuntu:~/[[ROOT]]/quadchecker$ |
||||
student@ubuntu:~/[[ROOT]]/quadchecker$ |
||||
student@ubuntu:~/[[ROOT]]/quadchecker$ |
||||
``` |
||||
|
||||
- If it's `quadC 1 1` : |
||||
|
||||
```console |
||||
student@ubuntu:~/[[ROOT]]/quadchecker$ ./quadC 1 1 |
||||
A |
||||
student@ubuntu:~/[[ROOT]]/quadchecker$ ./quadD 1 1 |
||||
A |
||||
student@ubuntu:~/[[ROOT]]/quadchecker$ ./quadE 1 1 |
||||
A |
||||
student@ubuntu:~/[[ROOT]]/quadchecker$ ./quadC 1 1 | ./quadchecker |
||||
[quadC] [1] [1] || [quadD] [1] [1] || [quadE] [1] [1] |
||||
student@ubuntu:~/[[ROOT]]/quadchecker$ |
||||
``` |
||||
|
||||
- If it's `quadC 1 2` : |
||||
|
||||
```console |
||||
student@ubuntu:~/[[ROOT]]/quadchecker$ ./quadE 1 2 |
||||
A |
||||
C |
||||
student@ubuntu:~/[[ROOT]]/quadchecker$ ./quadC 1 2 |
||||
A |
||||
C |
||||
student@ubuntu:~/[[ROOT]]/quadchecker$ ./quadE 1 2 | ./quadchecker |
||||
[quadC] [1] [2] || [quadE] [1] [2] |
||||
student@ubuntu:~/[[ROOT]]/quadchecker$ |
||||
``` |
@ -0,0 +1,73 @@
|
||||
#### Quadrangle Checker |
||||
|
||||
##### Try running the program: `"./quadA 3 3 | ./quadchecker"` |
||||
|
||||
``` |
||||
[quadA] [3] [3] |
||||
``` |
||||
|
||||
###### Does the program returns the value above? |
||||
|
||||
##### Try running the program: `"./quadB 3 3 | ./quadchecker"` |
||||
|
||||
``` |
||||
[quadB] [3] [3] |
||||
``` |
||||
|
||||
###### Does the program returns the value above? |
||||
|
||||
##### Try running the program: `"./quadC 1 1 | ./quadchecker"` |
||||
|
||||
``` |
||||
[quadC] [1] [1] || [quadD] [1] [1] || [quadE] [1] [1] |
||||
``` |
||||
|
||||
###### Does the program returns the value above? |
||||
|
||||
##### Try running the program: `"./quadE 1 2 | ./quadchecker"` |
||||
|
||||
``` |
||||
[quadC] [1] [2] || [quadE] [1] [2] |
||||
``` |
||||
|
||||
###### Does the program returns the value above? |
||||
|
||||
##### Try running the program: `"./quadE 2 1 | ./quadchecker"` |
||||
|
||||
``` |
||||
[quadD] [2] [1] || [quadE] [2] [1] |
||||
``` |
||||
|
||||
###### Does the program returns the value above? |
||||
|
||||
##### Try running the program: `"./quadC 2 1 | ./quadchecker"` |
||||
|
||||
``` |
||||
[quadC] [2] [1] |
||||
``` |
||||
|
||||
###### Does the program returns the value above? |
||||
|
||||
##### Try running the program: `"./quadD 1 2 | ./quadchecker"` |
||||
|
||||
``` |
||||
[quadD] [1] [2] |
||||
``` |
||||
|
||||
###### Does the program returns the value above? |
||||
|
||||
##### Try running the program: `"./quadE 1 1 | ./quadchecker"` |
||||
|
||||
``` |
||||
[quadC] [1] [1] || [quadD] [1] [1] || [quadE] [1] [1] |
||||
``` |
||||
|
||||
###### Does the program returns the value above? |
||||
|
||||
##### Try running the program: `"echo 0 0 | ./quadchecker"` |
||||
|
||||
``` |
||||
Not a Raid function |
||||
``` |
||||
|
||||
###### Does the program returns the value above? |
@ -1,42 +0,0 @@
|
||||
## raid2 |
||||
|
||||
### Instructions |
||||
|
||||
- Create a program that resolves a sudoku. |
||||
|
||||
- A valid sudoku has only one possible solution. |
||||
|
||||
### Usage |
||||
|
||||
#### Example 1: |
||||
|
||||
Example of output for one valid sudoku : |
||||
|
||||
```console |
||||
student@ubuntu:~/[[ROOT]]/raid2$ go build |
||||
student@ubuntu:~/[[ROOT]]/raid2$ ./raid2 ".96.4...1" "1...6...4" "5.481.39." "..795..43" ".3..8...." "4.5.23.18" ".1.63..59" ".59.7.83." "..359...7" | cat -e |
||||
3 9 6 2 4 5 7 8 1$ |
||||
1 7 8 3 6 9 5 2 4$ |
||||
5 2 4 8 1 7 3 9 6$ |
||||
2 8 7 9 5 1 6 4 3$ |
||||
9 3 1 4 8 6 2 7 5$ |
||||
4 6 5 7 2 3 9 1 8$ |
||||
7 1 2 6 3 8 4 5 9$ |
||||
6 5 9 1 7 4 8 3 2$ |
||||
8 4 3 5 9 2 1 6 7$ |
||||
student@ubuntu:~/[[ROOT]]/raid2$ |
||||
``` |
||||
|
||||
#### Example 2: |
||||
|
||||
Examples of output for invalid input or sudokus : |
||||
|
||||
```console |
||||
student@ubuntu:~/[[ROOT]]/raid2$ ./raid2 1 2 3 4 | cat -e |
||||
Error$ |
||||
student@ubuntu:~/[[ROOT]]/raid2$ ./raid2 | cat -e |
||||
Error$ |
||||
student@ubuntu:~/[[ROOT]]/raid2$ ./raid2 ".96.4...1" "1...6.1.4" "5.481.39." "..795..43" ".3..8...." "4.5.23.18" ".1.63..59" ".59.7.83." "..359...7" | cat -e |
||||
Error$ |
||||
student@ubuntu:~/[[ROOT]]/raid2$ |
||||
``` |
@ -1,62 +0,0 @@
|
||||
## raid3 |
||||
|
||||
### Instructions |
||||
|
||||
This raid is based on the `raid1` functions. |
||||
|
||||
Create a program `raid3` that takes a `string` as an argument and displays the name of the matching `raid1` and its dimensions. |
||||
|
||||
- If the argument is not a `raid1` the program should print `Not a Raid function`. |
||||
|
||||
- All answers must end with a newline (`'\n'`). |
||||
|
||||
- If there is more than one `raid1` matches, the program must display them all alphabetically ordered and separated by a `||`. |
||||
|
||||
### Usage |
||||
|
||||
- If it's `raid1a` |
||||
|
||||
```console |
||||
student@ubuntu:~/[[ROOT]]/raid3$ ls -l |
||||
-rw-r--r-- 1 student student nov 23 14:30 main.go |
||||
-rwxr-xr-x 1 student student nov 23 19:18 raid3 |
||||
-rwxr-xr-x 1 student student nov 23 19:50 raid1a |
||||
-rwxr-xr-x 1 student student nov 23 19:50 raid1b |
||||
-rwxr-xr-x 1 student student nov 23 19:50 raid1c |
||||
-rwxr-xr-x 1 student student nov 23 19:50 raid1d |
||||
-rwxr-xr-x 1 student student nov 23 19:50 raid1e |
||||
student@ubuntu:~/[[ROOT]]/raid3$ ./raid1a 3 3 | ./raid3 |
||||
[raid1a] [3] [3] |
||||
student@ubuntu:~/[[ROOT]]/raid3$ |
||||
student@ubuntu:~/[[ROOT]]/raid3$ |
||||
student@ubuntu:~/[[ROOT]]/raid3$ |
||||
student@ubuntu:~/[[ROOT]]/raid3$ |
||||
``` |
||||
|
||||
- If it's `raidc 1 1` : |
||||
|
||||
```console |
||||
student@ubuntu:~/[[ROOT]]/raid3$ ./raid1c 1 1 |
||||
A |
||||
student@ubuntu:~/[[ROOT]]/raid3$ ./raid1d 1 1 |
||||
A |
||||
student@ubuntu:~/[[ROOT]]/raid3$ ./raid1e 1 1 |
||||
A |
||||
student@ubuntu:~/[[ROOT]]/raid3$ ./raid1c 1 1 | ./raid3 |
||||
[raid1c] [1] [1] || [raid1d] [1] [1] || [raid1e] [1] [1] |
||||
student@ubuntu:~/[[ROOT]]/raid3$ |
||||
``` |
||||
|
||||
- If it's `raidc 1 2` : |
||||
|
||||
```console |
||||
student@ubuntu:~/[[ROOT]]/raid3$ ./raid1e 1 2 |
||||
A |
||||
C |
||||
student@ubuntu:~/[[ROOT]]/raid3$ ./raid1c 1 2 |
||||
A |
||||
C |
||||
student@ubuntu:~/[[ROOT]]/raid3$ ./raid1e 1 2 | ./raid3 |
||||
[raid1c] [1] [2] || [raid1e] [1] [2] |
||||
student@ubuntu:~/[[ROOT]]/raid3$ |
||||
``` |
@ -0,0 +1,55 @@
|
||||
#### Functionals |
||||
|
||||
###### Does the data appear in a table element? |
||||
|
||||
###### Does the table presents just the requested data (icon, name, full name, powerstats, race, gender, height, weight, place of birth, alignment), instead of all of it? |
||||
|
||||
###### Are there different pages that display different information? |
||||
|
||||
###### Can you change the amount of results displayed between **10**, **20**, **50**, **100** or **all results**? |
||||
|
||||
###### Does the table initially displays 20 results? |
||||
|
||||
###### Are the results initially sorted by the column **name** by **ascending** order? |
||||
|
||||
###### Are all columns of the table clickable in order to sort the results? |
||||
|
||||
##### Try to click once to sort the table by weight. |
||||
|
||||
###### Did the results became sorted numerically by weight in **ascending** order? (be aware that cases like [75 kg, 100kg] should be in that order and not the other way around) |
||||
|
||||
##### Try to click twice to sort the by place of birth. |
||||
|
||||
###### Did the results became sorted alphabetically by place of birth in **descending** order? |
||||
|
||||
##### Try to click several times on a column and observe its behavior. |
||||
|
||||
###### Did the results became sorted in **ascending** and **descending** order, alternately? |
||||
|
||||
##### Try to search for `Superman`. |
||||
|
||||
###### Are the missing values always shown last? |
||||
|
||||
###### As you type, does the results on the table change? |
||||
|
||||
##### Write only `Cat` on the search field. |
||||
|
||||
###### Does Catwoman appear on the results? |
||||
|
||||
###### Does the project contains the use of `fetch`? |
||||
|
||||
#### Bonus |
||||
|
||||
###### +Can you search for any fields apart from the name? |
||||
|
||||
###### +Can you do a search with search operators (include/exclude for strings and equal/not equal/greater than/lesser than)? |
||||
|
||||
###### +If you click on a hero, does the site displays the details and a large image of it? |
||||
|
||||
###### +Does the URL changes when you make a search? |
||||
|
||||
###### +After making a search and the URL changes, if you copy and paste it in a different window, are the results displayed in the table the same as the ones from the search? |
||||
|
||||
###### +Does the project runs quickly and effectively? (Favoring recursive, no unnecessary data requests, etc) |
||||
|
||||
###### +Does the code obey the [good practices](https://public.01-edu.org/subjects/good-practices/README.md)? |
@ -0,0 +1,42 @@
|
||||
## sudoku |
||||
|
||||
### Instructions |
||||
|
||||
- Create a program that resolves a sudoku. |
||||
|
||||
- A valid sudoku has only one possible solution. |
||||
|
||||
### Usage |
||||
|
||||
#### Example 1: |
||||
|
||||
Example of output for one valid sudoku : |
||||
|
||||
```console |
||||
student@ubuntu:~/[[ROOT]]/sudoku$ go build |
||||
student@ubuntu:~/[[ROOT]]/sudoku$ ./sudoku ".96.4...1" "1...6...4" "5.481.39." "..795..43" ".3..8...." "4.5.23.18" ".1.63..59" ".59.7.83." "..359...7" | cat -e |
||||
3 9 6 2 4 5 7 8 1$ |
||||
1 7 8 3 6 9 5 2 4$ |
||||
5 2 4 8 1 7 3 9 6$ |
||||
2 8 7 9 5 1 6 4 3$ |
||||
9 3 1 4 8 6 2 7 5$ |
||||
4 6 5 7 2 3 9 1 8$ |
||||
7 1 2 6 3 8 4 5 9$ |
||||
6 5 9 1 7 4 8 3 2$ |
||||
8 4 3 5 9 2 1 6 7$ |
||||
student@ubuntu:~/[[ROOT]]/sudoku$ |
||||
``` |
||||
|
||||
#### Example 2: |
||||
|
||||
Examples of output for invalid input or sudokus : |
||||
|
||||
```console |
||||
student@ubuntu:~/[[ROOT]]/sudoku$ ./sudoku 1 2 3 4 | cat -e |
||||
Error$ |
||||
student@ubuntu:~/[[ROOT]]/sudoku$ ./sudoku | cat -e |
||||
Error$ |
||||
student@ubuntu:~/[[ROOT]]/sudoku$ ./sudoku ".96.4...1" "1...6.1.4" "5.481.39." "..795..43" ".3..8...." "4.5.23.18" ".1.63..59" ".59.7.83." "..359...7" | cat -e |
||||
Error$ |
||||
student@ubuntu:~/[[ROOT]]/sudoku$ |
||||
``` |
@ -1,4 +1,4 @@
|
||||
#### Raid 2 |
||||
#### Sudoku |
||||
|
||||
##### Try running the program with the arguments: `"".96.4...1" "1...6...4" "5.481.39." "..795..43" ".3..8...." "4.5.23.18" ".1.63..59" ".59.7.83." "..359...7""` |
||||
|
Loading…
Reference in new issue