mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-01-18 08:17:01 +00:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
c30da6502b
commit
27f1e89792
|
@ -67,7 +67,7 @@ if __name__ == "__main__":
|
|||
|
||||
# test cases
|
||||
test_cases = [
|
||||
([3, 6, 9, 12], 4),
|
||||
([3, 6, 9, 12], 4),
|
||||
([3, 6, 9, 12, 15], 5),
|
||||
([1, 7, 10, 13, 14, 19], 4),
|
||||
([1, 2, 3, 4], 4),
|
||||
|
@ -81,4 +81,3 @@ if __name__ == "__main__":
|
|||
result = longest_arithmetic_subsequence(nums)
|
||||
print(f"Test case {nums}: Expected {expected_length}, Got {result}")
|
||||
assert result == expected_length, f"Test failed for input {nums}"
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user