mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-06 02:13:15 +08:00
Tighten up psf/black and flake8 (#2024)
* Tighten up psf/black and flake8 * Fix some tests * Fix some E741 * Fix some E741 * updating DIRECTORY.md Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
This commit is contained in:
@ -23,7 +23,7 @@ def findMin(arr):
|
||||
dp[i][j] = dp[i][j] or dp[i - 1][j - arr[i - 1]]
|
||||
|
||||
for j in range(int(s / 2), -1, -1):
|
||||
if dp[n][j] == True:
|
||||
if dp[n][j] is True:
|
||||
diff = s - 2 * j
|
||||
break
|
||||
|
||||
|
Reference in New Issue
Block a user