mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-19 19:03:02 +08:00
Add style improvements to Project Euler problem 9 (#3046)
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
"""
|
||||
Problem Statement:
|
||||
Problem 9: https://projecteuler.net/problem=9
|
||||
|
||||
A Pythagorean triplet is a set of three natural numbers, a < b < c, for which,
|
||||
|
||||
@ -12,7 +12,7 @@ Find the product abc.
|
||||
"""
|
||||
|
||||
|
||||
def solution():
|
||||
def solution() -> int:
|
||||
"""
|
||||
Returns the product of a,b,c which are Pythagorean Triplet that satisfies
|
||||
the following:
|
||||
|
Reference in New Issue
Block a user