Skip to content

Commit dd593fb

Browse files
committed
tabulation fixed and var name changed
1 parent 1e2d54a commit dd593fb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Sprint-1/JavaScript/findCommonItems/findCommonItems.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export const findCommonItems = (firstArray, secondArray) => {
2424

2525
for (const item of secondArray) {
2626
if (dictToCheck[item]) {
27-
doubled.push(item);
27+
common.push(item);
2828
dictToCheck[item] = false;
2929
}
3030
}

Sprint-1/Python/find_common_items/find_common_items.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def find_common_items(
2323
dict_to_check = {}
2424

2525
for item in first_sequence:
26-
dict_to_check[item] = True
26+
dict_to_check[item] = True
2727

2828
for item in second_sequence:
2929
if item in dict_to_check:

0 commit comments

Comments
 (0)