From 27f1e89792a7a54dfd3cb482801c2e3c44c34b57 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 4 Oct 2024 15:13:47 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- dynamic_programming/longest_arithmetic_subsequence.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dynamic_programming/longest_arithmetic_subsequence.py b/dynamic_programming/longest_arithmetic_subsequence.py index 785f5d455..9dd28d850 100644 --- a/dynamic_programming/longest_arithmetic_subsequence.py +++ b/dynamic_programming/longest_arithmetic_subsequence.py @@ -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}" -