GeezerVison is showing github.com — Change in the solution template. · danasmile/coding-problems@7aa26c1
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: README.md +10-6Lines changed: 10 additions & 6 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -25,19 +25,19 @@ For easier navigation into the solutions, each file with a solution in this repo |
25 | 25 |
|
26 | 26 | ```python |
27 | 27 | ''' |
28 | | -Problem name |
| 28 | +Problem Name |
29 | 29 |
|
30 | | -Problem explanation |
| 30 | +Problem explanation. |
31 | 31 |
|
32 | 32 | Input: XXX |
33 | 33 | Output: XXX |
34 | 34 | Output explanation: XXX |
35 | 35 |
|
36 | 36 | ========================================= |
37 | | -Solution 1 explanation |
| 37 | +Solution 1 explanation. |
38 | 38 | Time Complexity: O(X) |
39 | 39 | Space Complexity: O(X) |
40 | | -Solution 2 explanation |
| 40 | +Solution 2 explanation. |
41 | 41 | (some of the problems are solved in more than one way) |
42 | 42 | Time Complexity: O(X) |
43 | 43 | Space Complexity: O(X) |
@@ -68,11 +68,15 @@ def name_of_solution_2(params): |
68 | 68 |
|
69 | 69 | # Test 1 |
70 | 70 | # Correct result => 'result1' |
71 | | -print(name_of_solution_1('example1')) |
| 71 | +test_val = 'example1' |
| 72 | +print(name_of_solution_1(test_val)) |
| 73 | +print(name_of_solution_2(test_val)) |
72 | 74 |
|
73 | 75 | # Test 2 |
74 | 76 | # Correct result => 'result2' |
75 | | -print(name_of_solution_2('example2')) |
| 77 | +test_val = 'example2' |
| 78 | +print(name_of_solution_1(test_val)) |
| 79 | +print(name_of_solution_2(test_val)) |
76 | 80 | ``` |
77 | 81 |
|
78 | 82 |
|
|