From 3adb66b4367655de27a37c16725a576b52033627 Mon Sep 17 00:00:00 2001 From: Dale Seo Date: Sat, 17 Aug 2024 07:18:19 -0400 Subject: [PATCH] fix: add missing newlines at end of files --- contains-duplicate/kimyoung.js | 2 +- number-of-1-bits/sun912.py | 2 +- palindromic-substrings/kimyoung.js | 2 +- palindromic-substrings/wogha95.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/contains-duplicate/kimyoung.js b/contains-duplicate/kimyoung.js index d8688c3a..c2547e88 100644 --- a/contains-duplicate/kimyoung.js +++ b/contains-duplicate/kimyoung.js @@ -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 \ No newline at end of file +// time - O(n) - traverse through the array diff --git a/number-of-1-bits/sun912.py b/number-of-1-bits/sun912.py index 0df9a5d2..d2f42770 100644 --- a/number-of-1-bits/sun912.py +++ b/number-of-1-bits/sun912.py @@ -10,4 +10,4 @@ def hammingWeight(self, n: int) -> int: result += n % 2 n = n//2 - return result \ No newline at end of file + return result diff --git a/palindromic-substrings/kimyoung.js b/palindromic-substrings/kimyoung.js index 5c1b4332..5e465e93 100644 --- a/palindromic-substrings/kimyoung.js +++ b/palindromic-substrings/kimyoung.js @@ -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 \ No newline at end of file +// time - O(n^2) - iterating through the string and expanding both ways diff --git a/palindromic-substrings/wogha95.js b/palindromic-substrings/wogha95.js index eae4f837..ba88cde5 100644 --- a/palindromic-substrings/wogha95.js +++ b/palindromic-substrings/wogha95.js @@ -29,4 +29,4 @@ var countSubstrings = function(s) { return true; } -}; \ No newline at end of file +};