We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb0ea64 commit c8244afCopy full SHA for c8244af
src/hackerrank/projecteuler/euler001.py
@@ -5,7 +5,7 @@
5
6
7
# Function to find sum of Arithmetic Progression series
8
-def sum_of_arithmetic_progression(n: int, d: int):
+def sum_of_arithmetic_progression(n: int, d: int) -> int:
9
10
# Number of terms
11
n = n//d
@@ -14,7 +14,7 @@ def sum_of_arithmetic_progression(n: int, d: int):
14
15
16
# Function to find the sum of all multiples of a and b below n
17
-def euler001(a, b, n):
+def euler001(a, b, n) -> int:
18
19
# Since, we need the sum of multiples less than N
20
n = n-1
0 commit comments