mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-20 11:32:07 +08:00
Add type hints and default args for Project Euler problem 5 (#2982)
* add type hints and default args for problem 5 * Update sol1.py * Update sol2.py Co-authored-by: Dhruv <dhruvmanila@gmail.com>
This commit is contained in:
@ -8,7 +8,7 @@ remainder) by all of the numbers from 1 to N?
|
||||
"""
|
||||
|
||||
|
||||
def solution(n):
|
||||
def solution(n: int = 20) -> int:
|
||||
"""Returns the smallest positive number that is evenly divisible(divisible
|
||||
with no remainder) by all of the numbers from 1 to n.
|
||||
|
||||
|
Reference in New Issue
Block a user