Skip to content

Commit c8244af

Browse files
author
Gonzalo Diaz
committed
[REFACTOR] [Hacker Rank]: Project Euler #1: Multiples of 3 and 5. Typing added.
1 parent bb0ea64 commit c8244af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/hackerrank/projecteuler/euler001.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66

77
# Function to find sum of Arithmetic Progression series
8-
def sum_of_arithmetic_progression(n: int, d: int):
8+
def sum_of_arithmetic_progression(n: int, d: int) -> int:
99

1010
# Number of terms
1111
n = n//d
@@ -14,7 +14,7 @@ def sum_of_arithmetic_progression(n: int, d: int):
1414

1515

1616
# Function to find the sum of all multiples of a and b below n
17-
def euler001(a, b, n):
17+
def euler001(a, b, n) -> int:
1818

1919
# Since, we need the sum of multiples less than N
2020
n = n-1

0 commit comments

Comments
 (0)