Skip to content

Commit 478cc36

Browse files
committed
Refactor: Renamed variable arr to nums for clarity
1 parent ad7f983 commit 478cc36

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

data_structures/arrays/find_triplets_with_0_sum.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,7 @@ def find_triplets_with_0_sum_hashing(arr: list[int]) -> list[list[int]]:
9191
9292
3. Handles Duplicate efficiently by skipping repeated values.
9393
"""
94-
95-
96-
def find_triplets_with_0_sum_two_pointer(arr: list[int]) -> list[list[int]]:
94+
def find_triplets_with_0_sum_two_pointer(nums: list[int]) -> list[list[int]]:
9795
"""
9896
Function for finding the triplets with a given sum in the array using hashing.
9997

0 commit comments

Comments
 (0)