[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2024-10-04 15:13:47 +00:00
parent c30da6502b
commit 27f1e89792

View File

@ -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}"