* Fix astar

Single character variable names are old school.

* fixup! Format Python code with psf/black push

* Tuple

* updating DIRECTORY.md

Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
This commit is contained in:
Christian Clauss
2020-05-10 17:19:40 +02:00
committed by GitHub
parent 3d9bb051a8
commit a7cd633bb6
3 changed files with 47 additions and 47 deletions

View File

@@ -3,7 +3,7 @@ Kadane's algorithm to get maximum subarray sum
https://medium.com/@rsinghal757/kadanes-algorithm-dynamic-programming-how-and-why-does-it-work-3fd8849ed73d
https://en.wikipedia.org/wiki/Maximum_subarray_problem
"""
test_data = ([-2, -8, -9], [2, 8, 9], [-1, 0, 1], [0, 0], [])
test_data: tuple = ([-2, -8, -9], [2, 8, 9], [-1, 0, 1], [0, 0], [])
def negative_exist(arr: list) -> int: