Skip to content

Commit 2916af8

Browse files
author
Gonzalo Diaz
committed
[REFACTOR] documentation link added.
1 parent c8f2386 commit 2916af8

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/hackerrank/interview_preparation_kit/dictionaries_and_hashmaps/count_triplets_1.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# @link Problem definition
2+
# [[docs/hackerrank/interview_preparation_kit/dictionaries_and_hashmaps/count_triplets_1.md]]
3+
14
from collections import Counter
25

36

@@ -18,8 +21,8 @@ def count_triplets_brute_force(arr: list[int], r: int) -> int:
1821

1922

2023
def count_triplets(arr, r):
21-
a = Counter(arr)
22-
b = Counter()
24+
a_counter = Counter(arr)
25+
b_counter = Counter()
2326
triplets = 0
2427

2528
for i in arr:

0 commit comments

Comments
 (0)