Skip to content

Commit cbac41e

Browse files
committed
rename to sol2 as another has been accepted, euler solution guideline updates
1 parent 98144a2 commit cbac41e

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

DIRECTORY.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,7 @@
636636
* [Sol1](https://github.com/TheAlgorithms/Python/blob/master/project_euler/problem_037/sol1.py)
637637
* Problem 038
638638
* [Sol1](https://github.com/TheAlgorithms/Python/blob/master/project_euler/problem_038/sol1.py)
639-
* [Sol1](https://github.com/TheAlgorithms/Python/blob/master/project_euler/problem_038/sol2.py)
639+
* [Sol2](https://github.com/TheAlgorithms/Python/blob/master/project_euler/problem_038/sol2.py)
640640
* Problem 039
641641
* [Sol1](https://github.com/TheAlgorithms/Python/blob/master/project_euler/problem_039/sol1.py)
642642
* Problem 040

project_euler/problem_38/sol1.py renamed to project_euler/problem_038/sol2.py

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"""
2-
Project Euler Problem 38
3-
https://projecteuler.net/problem=38
2+
Project Euler Problem 38: https://projecteuler.net/problem=38
43
54
Take the number 192 and multiply it by each of 1, 2, and 3:
65
@@ -25,7 +24,6 @@ def solution() -> int:
2524
Calculates and returns the largest 1-9 pandigital 9-digit number as product of
2625
integer set n>1.
2726
28-
Answer:
2927
>>> solution()
3028
932718654
3129
@@ -78,4 +76,4 @@ def is_pandigital(num: int) -> bool:
7876

7977
if __name__ == "__main__":
8078

81-
print(solution())
79+
print(f"{solution() = }")

project_euler/problem_38/__init__.py

-1
This file was deleted.

0 commit comments

Comments
 (0)