-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.yaml
62 lines (54 loc) · 1.17 KB
/
config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
disabled: false
name: "Pascal's Triangle"
description: |
Generate Pascal's Triangle with n rows and format it to look like a proper triangle.
Each number should be properly spaced and centered.
Input format:
- Single integer n (1 ≤ n ≤ 15) representing the number of rows
Output format:
- n lines representing Pascal's Triangle
- Each line should be properly centered
- Numbers in each row should be space-separated
- The entire triangle should be centered
start_date: 2024-01-02T15:04:05Z
end_date: 2030-12-31T15:04:05Z
cases:
- input: |
5
expected: |
.
1
1 1
1 2 1
1 3 3 1
1 4 6 4 1
- input: |
3
expected: |
.
1
1 1
1 2 1
hidden_cases:
- input: |
1
expected: |
1
- input: |
4
expected: |
.
1
1 1
1 2 1
1 3 3 1
- input: |
6
expected: |
.
1
1 1
1 2 1
1 3 3 1
1 4 6 4 1
1 5 10 10 5 1