Skip to content

Commit

Permalink
fix: add missing newlines at end of files
Browse files Browse the repository at this point in the history
  • Loading branch information
DaleSeo committed Aug 17, 2024
1 parent 8a7f76e commit 3adb66b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion contains-duplicate/kimyoung.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ console.log(containsDuplicate([1, 2, 3, 1])); // true
console.log(containsDuplicate([1, 2, 3, 4])); // false

// space - O(n) - creating a set to store elements
// time - O(n) - traverse through the array
// time - O(n) - traverse through the array
2 changes: 1 addition & 1 deletion number-of-1-bits/sun912.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ def hammingWeight(self, n: int) -> int:
result += n % 2
n = n//2

return result
return result
2 changes: 1 addition & 1 deletion palindromic-substrings/kimyoung.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ console.log(countSubstrings("a")); // 1
console.log(countSubstrings("")); // 0

// space - O(1) - constant variable `result`
// time - O(n^2) - iterating through the string and expanding both ways
// time - O(n^2) - iterating through the string and expanding both ways
2 changes: 1 addition & 1 deletion palindromic-substrings/wogha95.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ var countSubstrings = function(s) {

return true;
}
};
};

0 comments on commit 3adb66b

Please sign in to comment.