added comment for input-output of code

pull/969/head
Pranav-Rustagi 2022-10-10 19:34:07 +05:30
parent 3fe14144fb
commit 25af174787
1 changed files with 3 additions and 0 deletions

View File

@ -13,3 +13,6 @@ function singleOccurringElement(arr) {
const arr = [2, 5, 7, 3, 1, 8, 8, 9, 4, 2, 7, 1, 4, 9, 5]; const arr = [2, 5, 7, 3, 1, 8, 8, 9, 4, 2, 7, 1, 4, 9, 5];
console.log(singleOccurringElement(arr)); console.log(singleOccurringElement(arr));
// Input: [2, 5, 7, 3, 1, 8, 8, 9, 4, 2, 7, 1, 4, 9, 5]
// Output: 3